﻿/* 全てのページに適用　ここから */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

* {
	box-sizing: border-box;
}
html {
	height: 100%;
}
body {
	margin: 0;	
	height: 100vh;
	background-image: url(../images/background_2.png);
	color: #000000;
	font-family: serif;
}
h2 {
	font-size: 18px;
}
p {
	font-size: 14px;
	font-weight: 100;
}
header {
	position: fixed;
	width: 100%;
	top: 0;
}
.nav {
	background-color: rgba(255,255,255,0.5);
	text-align: center;
	height: 70px;
}
.nav ul {
	margin: 0;
	padding: 25px 0;
}
.nav ul li {
	list-style-type: none;
	display: inline;
	padding: 0 30px;
}
.nav ul li a {
	color: #000000;
	text-decoration: none;
}
.nav ul li a:hover {
	opacity: 0.5;
}
section:nth-of-type(1) {
	margin-top: 100px;
}
h1 {
	font-size: 5.6vw;
	font-family: 'Great Vibes', cursive;
	font-weight: 100;
	text-align: center;
}
footer {
	z-index: 5;
	background-color: #ffffff;
	text-align: center;
	width: 100%;
	bottom: 0;
}
#footer p {
	margin: 0;
	font-weight: 100;
}
/* 全てのページに適用　ここまで */

/* トップページに適用　ここから */
#home {
	background-image: url(../images/background.png);
	position: relative;
}
#home .main {
	max-width: 1280px;
	margin: 0 auto;
}
#home_nav a {
	color: #000000;
}
.gakubuti {
	position: relative;
	max-width: 350px;
	max-height: 254.24px;
	height: 22.7vw;
	width: 31.25vw;
	overflow: hidden;
	margin: 4.7vh auto 0;
	padding: 1.172vw;
	background: url(../images/gakubuti.png) no-repeat #ffffff;
	background-size: contain;
}
.gakubuti img {
	position: absolute;
	top: 0;
	left: 0;
	object-fit: cover;
	object-position: top;
	width: 100%;
	height: 100%;
	padding: 1.172vw;
	opacity: 0.5;
}
#home_nav a:hover .gakubuti img {
	opacity: 1;
}
#home_nav a:hover .gakubuti h2 {
	display: none;
}
.gakubuti h2 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.4vw;
	width: 100%;
	text-align: center;
}
.profile {
	max-width: 158px;
	width: 14vw;
	object-fit: contain;
}
#home_nav {
	max-width: 68vw;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	align-content: space-around;
	margin-left: 9.8vw;
}
.neko_btn {
	z-index: 10;
	position: absolute;
	right: 40px;
	bottom: 0;
}

.neko_btn a::before {
	display: block;
	content: "";
	max-width: 128px;
	width: 10vw;
	height: 10vw;
	opacity: 0;
	transition: opacity .3s ease-in;
	background: url(../images/hukidasi.svg) no-repeat;
	background-size: contain;
}
.neko_btn a:hover::before {
	opacity: 1;
}
.home_footer {
	margin: 0;
	z-index: 5;
	color: #ffffff;
	background-color: #361A0B;
	text-align: center;
	width: 100%;
	position: absolute;
	bottom: 0;
}
/* トップページに適用　ここまで */

/* 下層ページに適用　ここから */
.main {
	margin: 0 12.5vw 1em;
}
.contents-text, .contents-image img {
	width: 100%;
	margin: 0;
}
.contents-image img {
	border: 8px solid #cccccc;
	background-color: #ffffff;
}
.contents {
	width: 34.5vw;
	max-width: 550px;
}
.contents-box {
	width:75vw;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
.popup-box {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	z-index: 5;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	overflow: hidden-unscrollable;
	background-color: rgba(0,0,0,0.7);
}
.popup {
	width: 75vw;
	display: flex;
	justify-content: center;
}
.popup-image img {
	height: 90vh;
}
.inari .popup-image img {
	max-height: 600px;
}
.popup-text {
	max-width: 350px;
	width: 30vw;
	color: #ffffff;
	margin-left: 30px;
}
/* 下層ページに適用　ここまで */

/* 素材ページ、バナーに適用　ここから */
#material .contents,
#banner .contents {
	width: 23.5vw;
	max-width: 320px;
}
#material .popup-image img,
#banner .popup-image img {
	max-height: 400px;
	background-color: #ffffff;
}
/* 素材ページ、バナーに適用　ここまで */

/* ハロウィンイラストに適用　ここから */
.halloween img {
	height: 70vh;
}

/* ハロウィンイラストに適用　ここまで */

/* プロフィールページ適用　ここから */
.profile-image {
	object-fit: contain;
	max-width: 400px;
	width: 34.5vw;
	margin-right: 30px;
}
.profile-contents {
	display: flex;
	justify-content: center;
}
.profile-contents table {
	border-collapse: collapse;
}
.profile-contents table th {
	width: 86px;
	vertical-align: top;
	padding-right: 20px;
}
.profile-contents table th,
.profile-contents table td {
	font-size: 15px;
	padding-top: 10px;
}
/* プロフィールページ適用　ここまで */
/*  */
@media screen and (max-width: 959px) {
	.nav ul li {
		font-size: 14px;
		padding: 0 20px;
	}
	.gakubuti {
		max-width: 400px;
		max-height: 290.56px;
		height: 45.4vw;
		width: 62.5vw;
		padding: 2.344vw;
	}
	.gakubuti h2 {
		font-size: 2.4vw;
	}
	.gakubuti img {
		padding: 3.2vw;
	}
	.home_footer {
		position: static;
	}
	.neko_btn {
		position: static;
		margin: 1vw 0 -22px 1vw;
	}
	.profile {
		max-width: 230px;
		width: 30vw;
	}
	#home_nav {
		margin: 0 auto;
	}
	.neko_btn a::before {
		max-width: 230px;
		height: 13vw;
		width: 30vw;
		background-position: right;
	}
	#site .contents-box,
	#illustration .contents-box {
		width: 75vw;
		display: block;
		margin: 0 auto;
	}
	#flyer .contents-box {
		width: 75vw;
		margin: 0 auto;
	}
	#flyer .contents {
		width: 36vw;
	}
	#site .contents,
	#illustration .contents {
		display: block;
		width: 100%;
		margin: 0 auto;
	}
	#material .contents,
	#banner .contents {
		width: 36vw;
		max-width: 320px;
	}
	.popup-box {
		overflow: scroll;
	}
	.popup {
		flex-wrap: wrap;
		
	}
	.popup-text {
		max-width: none;
		width: 70%;
		margin-left: 0;
	}
	#flyer .popup {
		width: 85vw;
		flex-wrap: nowrap;
	}
	@media screen and (max-width: 800px) {
		.inari .popup, #flyer .popup {
			flex-wrap: wrap;
		}
	}
	#flyer .popup-image {
		width: 60vw;
	}
	#flyer .popup-image img{
		width: 100%;
		height: auto;
	}
	#flyer .popup-text {
		margin-left: 1em;
	}
	.inari .popup-image {
		width: 100%;
	}
	.inari .popup-image img {
		max-height: none;
		width: 100%;
		height: auto;
	}
	.profile-contents {
		flex-wrap: wrap;
	}
	.profile-contents table th,
	.profile-contents table td {
		display: block;
		text-align: center;
	}
	.profile-contents table tr:nth-of-type(9) td,
	.profile-contents table tr:nth-of-type(9) th {
		display: table-cell;
		text-align: center;
	}
	.profile-contents table th {
		width: 100%;
		border-bottom: 1px dotted #000000;
		padding-top: 15px;
	}
	.profile-contents table td {
		padding-top: 5px;
	}
	.skill td {
		display: inline-table;/*スキルの内容横に並べたい*/
	}
	
}

@media screen and (max-width: 599px) {
	h2 {
		font-size: 14px;
		margin: 5px 0;
	}
	p {
		font-size: 13px;
	}
	.nav {
		height: 92px;
	}
	.nav ul li:nth-of-type(1){
		font-size: 15px;
		font-weight: 500;
		margin: 0 40px 5px;
	}
	.nav ul li{
		font-size: 13px;
		padding: 0;
		display: inline-block;
		width: 10em;
	}
	.nav ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		width: 20em;
		margin: 0 auto;
		padding: 10px 0;
	}
	section:nth-of-type(1) {
		margin-top: 122px;
	}
	.contents-text p {
		margin-top: 7px;
	}
	#banner .contents,
	#flyer .contents,
	#material .contents {
		width: 75vw;
	}
	#banner .contents-box,
	#flyer .contents-box,
	#material .contents-box {
		justify-content: center;
	}
	#flyer .popup {
		flex-wrap: wrap;
	}
	#illustration .popup-image img,
	#banner .popup-image img,
	#flyer .popup-image img,
	#material .popup-image img {
		width: 100%;
		height: auto;
	}
	.popup-text {
		width: 100%;
	}
	#footer p {
		font-size: 3vw;
	}
}
