/* body header main footer */
html {
	font-size: 1vw;
}

body {
	position: relative;
	margin: 0;
	background-color: #FAFAFA;
	font-family: YuMincho,"Yu Mincho","Noto Serif JP";
}

main {
	position: relative;
	min-height: 100vh;
	transition: .8s;
}

footer {
	position: relative;
	width: 100%;
	height: 20vw;
	transition: .8s;
}

footer img {
	position: absolute;
	bottom: 2vw;
	left: 5vw;
	width: 5vw;
}

footer #copyright {
	position: absolute;
	right: 5vw;
	bottom: 0;
	font-size: 1rem;
}

/* スクロールバー */
::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}

::-webkit-scrollbar-track {
	border-radius: 2.5px;
	background-color: silver;
}

::-webkit-scrollbar-thumb {
	border-radius: 2.5px;
	background-color: gray;
}

/* メニューボタン */
#menu-button {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 10;
	width: 120px;
	height: 120px;
	background: rgba(250, 250, 250, .6);
	text-shadow: 1px 1px 2px #808080;
	cursor: pointer;

	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
}

#hamburger {
	position: absolute;
	top: 35px;
	left: 50%;
	transform: translateX(-50%);
	width: 45px;
	height: calc(45px / 1.6180339887);
}

#hamburger span {
	display: block;
	position: absolute;
	width: 100%;
	height: 1px;
	box-shadow: 1px 1px 2px #808080;
	background: black;
	transition: .8s;

	transform-origin: center;
}

#hamburger span:nth-child(1) {
	top: 0;
}

#hamburger span:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}

#hamburger span:nth-child(3) {
	bottom: 0;
}

#hamburger span:nth-child(1).open {
	transform: translateY( calc(22.5px/1.6180339887) ) rotateZ(45deg);
}

#hamburger span:nth-child(2).open {
	opacity: 0;
	transform: scaleX(200%);
}

#hamburger span:nth-child(3).open {
	transform: translateY( calc(-22.5px/1.6180339887) ) rotateZ(-45deg);
}

#menu-button p {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	font-size: 18px;
}

/* ナビ */
#side-nav {
	position: fixed;
	right: -301px;
	z-index: 9;
	width: 300px;
	height: 100vh;
	border-left: gray solid 1px;
	background: white;
	transition: .8s;
}

#side-nav ul {
	list-style: none;
	position: absolute;
	top: 120px;
	left: 50%;
	transform: translateX(-50%);
	width: 200px;
	margin: 0;

	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
	-webkit-margin-before: 0;
	margin-block-start: 0;
	-webkit-margin-after: 0;
	margin-block-end: 0;
	-webkit-margin-start: 0;
	margin-inline-start: 0;
	-webkit-margin-end: 0;
	margin-inline-end: 0;
	-webkit-padding-start: 0;
	padding-inline-start: 0;
}

#side-nav li {
	margin-bottom: 20px;
}

#side-nav li a {
	color: black;
	transition: .3s;
}

#side-nav li a:hover {
	color: gray;
}

#side-nav li a p {
	margin: 0;
}

.en-menu {
	font-size: 25px;
}

.ja-menu {
	font-size: 15px;
}

.under-line {
	width: 0;
	height: 1px;
	background-color: gray;
	transition: .5s;
}

#side-nav li:hover .under-line {
	width: 150px;
}

main.open, footer.open, #side-nav.open {
	transform: translateX(-300px);
}

/* ローディング画面 */
#loader {
	position: fixed;
	z-index: 9;
	width: 100%;
	height: 100%;
	background: inherit;
}

#loader img {
	position: fixed;
	right: 20px;
	bottom: 20px;
	height: 150px;
}

#loader h1 {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	margin: 0;
}

/* その他 */
::-moz-selection {
	background: silver;
	color: #FFF;
}

::selection {
	background: silver;
	color: #FFF;
}

a {
	color: black;
	text-decoration: none;
}

.title-jp {
	font-size: 1rem;

	-webkit-margin-before: 0;
	margin-block-start: 0;
	-webkit-margin-after: 0;
	margin-block-end: 0;
}

/* レスポンシブデザイン */
@media screen and (max-width: 1200px) {
	html {
		font-size: 1.5vw;
	}
}

@media screen and (max-width: 960px) {
}

@media screen and (max-width: 770px) {
	html {
		font-size: 2.5vw;
	}
	footer img {
		bottom: 3rem;
	}
	footer #copyright {
		right: 0;
		width: 100%;
		font-size: .8rem;
		text-align: center;
	}
}

@media screen and (max-width: 600px) {
	#menu-button {
		width: 80px;
		height: 80px;
	}

	#hamburger {
		top: 25px;
		width: 30px;
		height: calc(30px / 1.6180339887);
	}

	#hamburger span:nth-child(1).open {
		transform: translateY( calc(15px/1.6180339887) ) rotateZ(45deg);
	}

	#hamburger span:nth-child(3).open {
		transform: translateY( calc(-15px/1.6180339887) ) rotateZ(-45deg);
	}

	#menu-button p {
		bottom: 15px;
		font-size: 12px;
	}
}

@media screen and (max-width: 480px) {
	html {
		font-size: 3.5vw;
	}

	#side-nav {
		right: -101%;
		width: 100%;
	}

	#side-nav ul {
		top: 70px;
		left: 50%;
		transform: translateX(-50%);
		width: 70%;
	}

	#side-nav li {
		margin-bottom: 20px;
	}

	.en-menu {
		font-size: 25px;
	}

	.ja-menu {
		font-size: 15px;
	}

	#side-nav li:hover .under-line {
		width: 150px;
	}

	main.open, footer.open, #side-nav.open {
		transform: translateX(-101%);
	}
}