@charset "utf-8";

html {
	overflow-y: scroll; /*常にスクロールバーを表示し画面遷移でがたがたさせない*/
	scroll-behavior: smooth;
}
body {
	background: #f5fffd;
	color: #333;
	line-height: 1;
	font-family: 'MPLUS';
}

@font-face {
	font-family: 'MPLUS';
	src: url(fonts/Mplus1-Light.otf);/*欧文を手書き風に*/
}

@font-face {
	font-family: 'Comfortaa-VariableFont_wght';
	src: url(fonts/Comfortaa-VariableFont_wght.ttf);/*欧文を手書き風に*/
}

@font-face {
  font-family: 'NotoSansJP';
  src: url('/fonts/noto-sans-jp-v56-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

img {
	width: 100%;
	max-width: 100%;
}

a {
	color: #333;
	text-decoration: none;
	transition: all .3s ease;
}

a:hover {
	color: #00ae95;
	text-decoration: none;
}

div.inner {
	max-width: 1000px;/*レスポンシブ*/
	min-width: 290px;/*レスポンシブ*/
	margin: 0 auto;
	/*background: #aaa;*/
	padding: 0 15px;
}

div.block-bg {
	transition: all .7s ease;
}

header {
	padding-top: 15px;
	min-height: 40px;/*文字が減っても最低限の高さが保証される*/
}

header h1.logo {
	max-width: 70px;
}

header div.inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: center;
}

header div.inner nav ul {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
header div.inner nav ul li {
	margin-left: 10px;
	font-size: 1.375rem;/*22px*/
}

header div.inner nav ul li a {
	font-size: 1.125rem;
	transition: all .3s ease;
}

header div.inner nav ul li a:hover {
  text-decoration: none;
	color: #00ae95;
}

/*雨のアニメーション*/
div.mainVisual #soto {
	width: 100%;
	height: 400px;
	position: relative;
}
div.mainVisual #ame {
	top: 0;
	left: 0;
	position: absolute;
	animation:sizuku 1.5s linear;
	width: 2px;
}
@keyframes sizuku {
	from {
		transform:translateY(0%);
		opacity: 1;
	}
	50% {
		transform:translateY(160%);
		opacity: 0;
	}
	100% {
		transform:translateY(-80%);
		opacity: 0;
	}
}

div.mainVisual div.inner {
	position: relative;
	height: 100%;
}
div.mainVisual div.inner p {
	font-size: 1.875rem;/*30px*/
	letter-spacing: 0.05em;
	/*font-family: 'MPLUS';*/
	font-family: 'Comfortaa-VariableFont_wght';
	z-index: 2;
	position: absolute;
	top: 62%;
	left: 50%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	color: #666;
}

main section {
	margin: 150px 0 0;
}

main section h2 {
	font-size: 2rem;/*32px*/
	text-align: center;
	margin: 0 0 50px;
	letter-spacing: 0.05em;
	font-family: 'Comfortaa-VariableFont_wght';
}

main section.about {
	z-index: 2;
	background: url('../images/black-thread-light.png');
}

main section p {
	line-height: 2;
	letter-spacing: 0.1em;
	font-size: 1.1em;
}

main section h3 {
	font-size: 1.5rem;/*24px*/
	margin: 50px 0 0;
	letter-spacing: 0.05em;
}

main section#works h3 {
	display: inline-block;
    padding: 8px 16px 10px;
    border: 1px solid #333333;
    border-radius: 20px;
}

main section#about {
  background-image: url(../images/black-thread-light.png);
  background-attachment: fixed;
	padding: 150px 0;
	margin: 100px 0 150px;
}

main section#works section,
main section#skill section {
	margin: 50px 0 0;
	padding: 0;
}

main section#works section:first-of-type {
	margin: 30px 0 0;
}
main section#works section h4 {
	text-align: center;
}

main section#works section h4 a {
	display: inline-block;
}
main section#works section h4 a img {
	vertical-align: bottom;
	border: solid 1px #999;
	box-shadow: 4px 4px 4px rgba(0,0,0,0.5);
	transition: .4s;
	max-width: 400px;
}
main section#works section h4 a img:hover {
	box-shadow: 0 0 10px rgba(0,0,0,0);
}
main section#works section h5 {
	margin-top: 15px;
	text-align: center;
}

/*
main section#works section aside {
display: inline-block;
font-size: 0.875rem;
padding: 0.3em .6em;
line-height: 1;
text-decoration: none;
color: #333;
background-color: #fff;
border: 1px solid #333;
border-radius: 2em;
}
main section#works section dl dt {
float: left;
clear: left;
margin: 0;
}
main section#works section dl dt::after {
margin-left: 2px;
content: ":";
}
main section#works section dl dd {
margin-left: 3em;
}*/

/*SKILL*/
main section#skill h2 {
	margin: 0;
}

main section#skill div.skill-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

main section#skill section {
	width: 48%;
	line-height: 1;
}
main section#skill section h4 {
	text-align: center;
	flex-grow: 1;
}
main section#skill section h4 img {
	width: 40%;
}

main section#skill section div.rate {
	text-align: center;
}

main section#skill section h5 {
	position: relative;
	color: #CCCCCC;
	font-size: 0;
	display: inline-block;
	white-space: nowrap;
}

main section#skill section h5:before,
main section#skill section h5:after{
	font-size: 1.25rem;
	content: '\2605\2605\2605\2605\2605';
}

main section#skill section h5:after{
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #ffcf32; /* イエローカラー 自由に設定化 */
}

main section#skill section h5[data-rate="5"]:after{ width: 100%; } /* 星5 */
main section#skill section h5[data-rate="4.5"]:after{ width: 90%; } /* 星4.5 */
main section#skill section h5[data-rate="4"]:after{ width: 80%; } /* 星4 */
main section#skill section h5[data-rate="3.5"]:after{ width: 70%; } /* 星3.5 */
main section#skill section h5[data-rate="3"]:after{ width: 60%; } /* 星3 */
main section#skill section h5[data-rate="2.5"]:after{ width: 50%; } /* 星2.5 */
main section#skill section h5[data-rate="2"]:after{ width: 40%; } /* 星2 */

main section#skill section p {
	font-size: 0.875rem;
	margin: 0 5px;
}

/*Profile*/
main section#profile section {
	margin: 50px 0 0;
}

main section#profile {
	position: relative;
}

main section#profile::before {
	position: absolute;
	width: 5px;
	background: #095A4D;
	top: calc(3.5rem + 50px);
	left: 0;
	margin-left: calc(4.2em + 1.875rem / 2);
	content: '';
	height: calc(100% - 3.5rem - 50px);
	font-size: 0.875rem;
}
main section#profile section h3 {
	position: relative;
	width: 4.2em;
	float: left;
	clear: left;
	font-size: 0.875rem;
	font-weight: 500;
	height: 1.875rem;
	line-height: 1.875rem;
	margin: calc(50px - 1.875rem / 2) 0 0;
	text-align: right;
}

main section#profile section h3::before {
	position: absolute;
	background: #095A4D;
	top: 0;
	left: 0;
	margin-left: calc(4.2em + 2.5px);
	content: '';
	width: 1.875rem;/*30px*/
	height: 1.875rem;/*30px*/
	border-radius: 50%;
}

main section#profile section h3::after {
	position: absolute;
	background: #095A4D;
	top: 0;
	left: 0;
	margin-left: calc(4.2em + 2.5px);
	margin-top: calc(0.9375rem + 1px);
	content: '';
	width: 4.5em;
	height: 1px;
}

main section#profile section div.contents  {
	font-size: 0.875rem;
	margin-left: calc(4.2em + 2.5px + 4.5em);
}

main section#profile section div.contents h4 {
}
main section#profile section div.contents h4 img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 50%;
	background: rgba(255,255,255,0.4);
}
main section#profile section div.contents h5 {
	margin-top: 10px;
	font-size: 1rem;
}
main section#profile section div.contents p {
	margin-top: 10px;
}
main section#thanks {
	margin: 200px 0 0;
	padding: 0 0 100px;
	/*background-image: url("../images/leaf.jpg");
	background-color:rgba(255,255,255,0.2);
	background-blend-mode:lighten;*/
}

main section#thanks h2 {
	font-size: 2.5rem;/*56px*/
	line-height: 1.5;
}

footer {
	text-align: center;
	background: #00a6c4;
	padding: 0 0 80px;
	color: #ddd;
}


/***追従するトップへ戻るボタン***/
#page_top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 3;
}
#page_top #arrow {
	width: 30px;
	height: 60px;
}
#page_top a {
	background: #72C7CA;
	text-decoration: none;
	color: #fff;
	width: 60px;
	height: 60px;
	padding: 5px;
	text-align: center;
	display: block;
	border-radius: 50%;
	opacity: 0.9;
	transition: all .3s ease;
}
#page_top a:hover {
	text-decoration: none;
	opacity: .5;
}
/***トップへ戻るボタンここまで***/
@media screen and (min-width: 768px){

	header h1.logo {
		max-width: 66px;
	}

	header div.inner nav ul li {
		margin-left: 28px;
	}

	header div.inner nav ul li a {
		font-size: 1.3rem;
		font-family: 'Comfortaa-VariableFont_wght';
	}

	/*
	main section {
	margin: 250px 0 250px;
	}*/

	main section h2 {
		font-size: 3.5rem;/*56px*/
	}

	main section#works .works-group {
		display: flex;
		justify-content: start;
	}

	main section#works section {
		width: calc(33% - 20px); /* margin padding分を引く */
		margin: 20px 10px 0;
	}

	main section#works section:first-of-type {
		margin: 20px 10px 0;
	}

	main section#skill div.skill-group {
		justify-content: start;
	}
	main section#skill section {
		width: 25%;
	}

	main section#skill section p {
		margin: 0 20px;
	}
}
