@charset "utf-8";

html{
	scroll-behavior: smooth;
}

body{
font-family: source-han-serif-japanese, serif;
max-width:900px;
margin: 0 auto;
}

#wrapper{
overflow: hidden;
}

/* loading
#loading {
  width: 100vw;
  height: 100vh;
  transition: all 1s;
  background-color: #c2b8b4;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}
.spinner {
  width: 100px;
  height: 100px;
  margin: 200px auto;
  background-color: #fff;
  border-radius: 100%;
  animation: sk-scaleout 1.0s infinite ease-in-out;
}

@keyframes sk-scaleout {
  0% {
    transform: scale(0);
  } 100% {
    transform: scale(1.0);
    opacity: 0;
  }
}

.loaded {
  opacity: 0;
  visibility: hidden;
}*/

header{
color:#7f382b;
width:100vw;
max-width:900px;
height:200px;
text-align: center;
margin-top:200px;
}

header h1{
	font-family: 'Libre Barcode 39 Extended Text', cursive;
	font-size: 60px;
	font-weight: 200;
}

header span{
	font-family: 'Italianno', cursive;
	margin-right:13px;
}

/*	font-family: 'Lato', sans-serif; */

	@media screen and (max-width:600px) {
		header{
			width: auto;
			margin:40px auto 40px;
			height:auto;
			align-items: center;
			display: flex;
			writing-mode:vertical-lr;
		}
		header h1{
			font-size: 8vw;
			}
	}


nav{
	margin: 0 auto 50px auto;
}

nav ul{
	display: flex;
	list-style-type: none;
	justify-content: flex-end;
	align-items: center;
	max-width:800px;
	margin: 0 auto;
}

nav ul li{
	width: 30%;
	text-align: right;
	display: inline-block;
	-webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all  0.3s ease;
}

nav ul li a {
	display: block;
	text-decoration: none;
	color: #7f382b;
	-webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all  0.3s ease;
	-webkit-transform: scale(1);
	transform: scale(1);
}

nav ul li a:hover{
	color: #7f382b;
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
}

#about div{
	text-align: center;
	margin: 0 auto;
	max-width: 80%;
}

#about p{
	display: inline-block;
	margin: 0 auto;
	text-align: left;
}

h1{
	color: #7f382b;
	font-size: 150%;
	text-align: center;
	margin: 50px 0 50px 0;
}

#service .container{
		text-align: center;
		margin-bottom: 50px;
}

#service h2{
	color: #7f382b;
	font-size:120%;
}

#service p{
	width: 80%;
	margin: 0 auto;
	text-align: left;
}

@media screen and (min-width:600px) {
	#service .flex{	
		display:flex;
		justify-content:center;
		margin: 0 auto;
	}
	#service .container{	
		width: 45%;
	}

	
}

a{
text-decoration: none;
}

#works .note{
	font-size: 14px;
	margin:5px auto 50px;
	text-align: left;
	width:80vw;
}
	article{
	width:90vw;
	max-width:900px;
	height:auto;
	margin:20px auto;
	box-sizing: content-box;
	}

	article.thumb{
	display: flex;
	text-align: center;
	align-items:flex-start;
	justify-content:space-around;
	}

	article.thumb img.imgpc{
	width: calc( 80vw / 3 * 2 );
	max-width: calc( 873px / 3 * 2 );
	height: calc( 80vw / 3 * 2 / 600 * 475);
	max-height: calc( 873px / 3 * 2 / 600 * 475 );
	margin: 0 auto;
	}

	article.thumb img.imgsp{
	width: calc( 80vw / 3 * 1 );
	max-width: calc( 873px / 3 * 1 );
	height: calc( 80vw / 3 * 1 / 300 * 475);
	max-height: calc( 873px / 3 * 1 / 300 * 475 );
	margin: 0 auto;
	}

	article.thumb img.imgsp, article img.imgpc{
	border-style:solid;
	border-width:5px;
	border-color:rgba(255,255,255,0);
	transition-duration:0.5s;
	align-self:flex-start;
	}

	article.thumb:hover img{
	border-style:solid;
	border-width:5px;
	border-color:rgba(0,0,0,0.2);
	transition-duration:0.5s;
	transform: scale(0.99)rotate(0.001deg);;
	}

	article.sentence{
	width:80vw;
	margin:20px auto 100px;
	}
	
	.sentence h2, .sentence h2{
	font-size: 14px;
	color:#7f382b;
	position: relative;
	}
	
	.sentence h2:before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0; 
  display: inline-block;
  width: 30px; 
  height: 1px; 
  background-color: #7f382b; 
}
	
	.sentence p{
	font-size: 14px;
	margin-top: 5px;
	margin-bottom: 15px;
	}




footer{
width:100vw;
max-width:900px;
height:10vh;
text-align: center;
color:#7f382b;
background-color:rgba(127,56,43,0.2)
}




p#pagetop{
width: 50px;
height: 50px;
position: fixed;
bottom: 10px;
left: 0; 
}

@media screen and (min-width:1000px) {
	p#pagetop{
	left: calc((100vw - 900px) / 2 - 50px);
	}
}

p#pagetop a{
position: relative;
display: block;
width: 20px;
height: 50px;
text-decoration: none;
opacity: 0.4;
}

p#pagetop a::before{
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f102TOP';
	writing-mode:vertical-lr;
  font-size: 25px;
  color: #7f382b;
  opacity:0.8;
  position: absolute;
  width: 25px;
  height: 25px;
  top: -80px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}




