html {
	scroll-behavior: smooth;
}

/* @font-face {
	font-family: 'haranyan';
	src: url(haranyan.ttf);
} */

@media screen and (min-width: 901px) {
	#loading {
		position: absolute;
		top: 0px;
		right: 0px;
		bottom: 0px;
		left: 0px;
		margin: auto;
		height: 70px;
		width: 20rem;
		text-align: center;
		font-family: 'Questrial', 'Helvetica', sans-serif;
	}
	#loading img {
		height: 70px;
		width: 70px;
		-webkit-animation: spin 1.5s linear infinite;
		-moz-animation: spin 1.5s linear infinite;
		-ms-animation: spin 1.5s linear infinite;
		-o-animation: spin 1.5s linear infinite;
		animation: spin 1.5s linear infinite;
	}
	@-webkit-keyframes spin {
		0% {
			-webkit-transform: rotate(0deg);
		}
		100% {
			-webkit-transform: rotate(360deg);
		}
	}
	@-moz-keyframes spin {
		0% {
			-moz-transform: rotate(0deg);
		}
		100% {
			-moz-transform: rotate(360deg);
		}
	}
	@-ms-keyframes spin {
		0% {
			-ms-transform: rotate(0deg);
		}
		100% {
			-ms-transform: rotate(360deg);
		}
	}
	@-o-keyframes spin {
		0% {
			-o-transform: rotate(0deg);
		}
		100% {
			-o-transform: rotate(360deg);
		}
	}
	@keyframes spin {
		0% {
			transform: rotate(0deg);
		}
		100% {
			transform: rotate(360deg);
		}
	}
	#loader-bg {
		position: fixed;
		width: 100%;
		height: 100%;
		top: 0px;
		left: 0px;
		background: #FFFFFF;
		z-index: 10;
	}



	body {
		margin: 0;
		font-family: sans-serif;
		background-color: #eee;
		color: #222;
		/* user-select: none;
		-moz-user-select: none;
		-webkit-user-select: none;
		-ms-user-select: none; */
	}

	section {
		margin: 20px auto;
		width: 900px;
		align-content: center;
		font-family: "Shippori Mincho","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ", Meiryo ,"ＭＳ Ｐゴシック", sans-serif;
		font-size: 1.2rem;
		word-wrap: break-word;
		line-height: 40px;
		background-color: #fff;
		box-shadow: 5px 5px 10px rgba(0, 0, 0, .3);
	}

	p {
		padding: 1% 5%;
	}

	header {
		width: 100%;
		height: 100vh;
		display: table;
		box-shadow: 0px 0px 10px rgba(0, 0, 0, .8) inset;
		background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAABpJREFUGFdjZGBg+M/AwMAIo0EMFACXwakCAKzeBAUBcR4mAAAAAElFTkSuQmCC)repeat, /*linear-gradient(0deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),*/ url(https://raw.githubusercontent.com/nyanmodel/nyanmodel.github.io/master/bgimage.jpg);
		background-size: 5px, cover;
		background-attachment: scroll,fixed;
		white-space: nowrap;
		user-select: none;
		-moz-user-select: none;
		-webkit-user-select: none;
		-ms-user-select: none;
	}

	#toptext {
		margin: 0 auto;
		height: 100vh;
		position: relative;
    	text-align: center;
		align-items: center;
		display: flex;
		justify-content: center;
		z-index: 2;
		/* text-align: center;
		font-family: 'Questrial', 'Helvetica', sans-serif;
		color: #000; */
	}

	#logo{
		width: 400px;
	}

	#pageTitle {
		font-size: 4rem;
	}

	#pageSubtitle {
		font-size: 1.5rem;
		font-weight: lighter;
	}

	#bottomtext {
		margin: auto;
		display: inline-block;
		position: absolute;
		text-align: center;
		color: #fff;
		z-index: 2;
		top: 85vh;
		left: 0;
		right: 0;
		bottom: 0;
		-webkit-animation: blink 1.0s ease-in-out infinite alternate;
		-moz-animation: blink 1.0s ease-in-out infinite alternate;
		animation: blink 1.0s ease-in-out infinite alternate;
		user-select: none;
		-moz-user-select: none;
		-webkit-user-select: none;
		-ms-user-select: none;
	}

	#sdText {
		font-family: Helvetica, sans-serif;
		font-size: 1rem;
		font-weight: 300;
	}

	#sdArrow {
		font-size: 5rem;
	}

	@-webkit-keyframes blink {
		0% {
			opacity: .3;
		}
		100% {
			opacity: 1;
		}
	}
	@-moz-keyframes blink {
		0% {
			opacity: .3;
		}
		100% {
			opacity: 1;
		}
	}
	@keyframes blink {
		0% {
			opacity: .3;
		}
		100% {
			opacity: 1;
		}
	}

	#nav {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		justify-content: space-between;
	}

	.nav_btn {
		font-family: 'Questrial', 'Helvetica', sans-serif;
		font-weight: normal;
		padding: 10px;
		flex-grow: 1;
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(https://raw.githubusercontent.com/nyanmodel/nyanmodel.github.io/master/bgimage.jpg);
		background-size: cover;
		background-attachment: fixed;
		text-align: center;
	}

	.nav_btn a {
		display: block;
		text-decoration: none;
		color: #fff;
	}
	/* .nav_btn:hover {
		background: rgb(0, 0, 0);
	} */

	#profile_card{
		display: flex;
		width: 80%;
		margin: auto;

	}

	.profile_icon{
		width: 30%;
		margin: 0 40px;
	}

	.profile_letter{
		width: 70%;
		margin:40px;
	}

	.profile_letter p.name{
		font-size: 1.3em;
		font-weight: 500;
		font-family: 'Zen Kaku Gothic New', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', sans-serif;
	}

	#languages{
		padding: 20px;
		text-align: center;
		font-size: 2em;
	}


	img.cont {
		/* max-width: 80%;
		max-height: 100vh;
		margin: 10px 10%;
		padding: 10px;
		box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
		border-radius: 50px; */
		width: 100%;
	}

	img#news {
		height: 200px;
		display: table-cell;
		border-radius: 5px;
		box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
		margin: 20px;
	}

	img#icon {
		margin: 50px 10px 0 10px;
		border-radius: 100px;
		text-align: center;
		width: 200px;
		opacity: 1;
		transition: .2s;
	}

	img#icon:hover {
		transition: .2s;
		border-radius: 30px;
	}

	img#photo {
		width: 30%;
		float: right;
		margin: 0 10px;
	}
	
	.gallery{
		display: -webkit-flex;
		display: flex;
		-webkit-flex-direction: row;
		flex-direction: row;
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
		align-items: stretch;
	}

	.gallery a {
		display: block;
		position: relative;
		width: 25%;
	}

	.gallery a::before {
		content: "";
		display: block;
		padding-top: 100%;
	  }

	.gallery a img {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		object-fit: cover;
		filter: grayscale(100%);
		transition: .1s ease-in-out;
	}

	.gallery a:hover img{
		filter:grayscale(0);
	}



	/* #newsDetail{
		display: table-cell;
		padding: 30px;
		font-size: 20px;
		line-height: 30px;
	} */

	h1 {
		font-size: 40px;
		font-family: 'Questrial', 'Helvetica', sans-serif;
		font-weight: normal;
		padding: 30px;
		margin: 0;
		color: #fff;
		/* background: linear-gradient(-45deg, rgba(0, 130, 200, 0.7), rgba(0, 200, 130, 0.7)), url(night.jpg); */
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(https://raw.githubusercontent.com/nyanmodel/nyanmodel.github.io/master/bgimage.jpg);
		background-size: cover;
		background-attachment: fixed;
		text-align: center;
	}
	h2 {
		font-size: 30px;
		font-weight: 300;
		font-family: 'Questrial', 'Helvetica','Zen Kaku Gothic New', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', sans-serif;
		margin: 0;
		padding: 2%;
		/* border-bottom-style: solid;
		border-bottom-width: 2px;
		border-color: #000; */
		color: #000;
		/* border-style: solid;
		border-color: #000;
		border-width: 2px; */
		box-shadow:0px 0px 8px 3px #ccc inset;
		text-align: center;
	}
	hr{ 
		border: 0;
		border-bottom: 1px dashed #8c8b8b; 
	} 

	#links_contents {
		width: 80%;
		margin: auto;
		padding: 30px;
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
	}

	button {
		font-size: .8rem;
		font-family: Helvetica, sans-serif;
		color: #fff;
		margin: 1em;
		padding: 10px;
		width: 20%;
		display: inline-block;
		transition: .2s;
		background-color: white;
		border-radius: 5px;
		border: 0;
	}
	button:hover {
		transform: rotate(5deg);
		transition: .2s;
	}
	.text_contents{
		padding: 10px 0;
	}
	#update_contents {
		padding: 30px;
	}
	ul.hblist {
		padding: 2% 5%;
		margin: 0;
	}
	ul.hblist li {
		list-style: none;
	}
	ul.hblist li:before {
		font-family: haranyan;
		content: "③ ";
	}
	
	iframe#hirasawa {
		float: right;
		margin: 0 10px;
	}
	.pagetop {
		position: fixed;
		margin: 0;
		top: 0;
		width: 100%;
		padding: 10px;
		box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
		background: linear-gradient(-45deg, rgba(0, 130, 200, 0.8), rgba(0, 200, 130, 1));
		color: white;
		display: none;
	}
	.pagetop a {
		text-align: center;
		font-family: 'Iceland', cursive;
		font-size: 50px;
		text-decoration: none;
		transform: scale(1.0);
		color: white;
	}
	.pagetop a:hover {
		text-align: center;
		transform: scale(1.2);
	}
	footer {
		font-weight: bold;
		bottom: 0;
		width: 100%;
		padding-top: 20px;
		padding-bottom: 20px;
		font-size: 15px;
		font-family: Helvetica;
		text-align: center;
		/* background: linear-gradient(-45deg, rgba(0, 130, 200, 0.7), rgba(0, 200, 130, 0.7)), url(night.jpg); */
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(https://raw.githubusercontent.com/nyanmodel/nyanmodel.github.io/master/bgimage.jpg);
		background-size: cover;
		background-attachment: fixed;
		color: #fff;
		box-shadow: 0px 0px 10px rgba(0, 0, 0, .8) inset;
	}
}


/*以下よりスマホサイト用CSS*/

@media screen and (max-width: 900px) {
	#loading {
		position: absolute;
		top: 0px;
		right: 0px;
		bottom: 0px;
		left: 0px;
		margin: auto;
		height: 70px;
		width: 20rem;
		text-align: center;
		font-family: 'Questrial', 'Helvetica', sans-serif;
	}
	#loading img {
		height: 70px;
		width: 70px;
		-webkit-animation: spin 1.5s linear infinite;
		-moz-animation: spin 1.5s linear infinite;
		-ms-animation: spin 1.5s linear infinite;
		-o-animation: spin 1.5s linear infinite;
		animation: spin 1.5s linear infinite;
	}
	@-webkit-keyframes spin {
		0% {
			-webkit-transform: rotate(0deg);
		}
		100% {
			-webkit-transform: rotate(360deg);
		}
	}
	@-moz-keyframes spin {
		0% {
			-moz-transform: rotate(0deg);
		}
		100% {
			-moz-transform: rotate(360deg);
		}
	}
	@-ms-keyframes spin {
		0% {
			-ms-transform: rotate(0deg);
		}
		100% {
			-ms-transform: rotate(360deg);
		}
	}
	@-o-keyframes spin {
		0% {
			-o-transform: rotate(0deg);
		}
		100% {
			-o-transform: rotate(360deg);
		}
	}
	@keyframes spin {
		0% {
			transform: rotate(0deg);
		}
		100% {
			transform: rotate(360deg);
		}
	}

	#loader-bg {
		position: fixed;
		width: 100%;
		height: 100%;
		top: 0px;
		left: 0px;
		background: #FFFFFF;
		z-index: 10;
	}

	body {
		margin: 0;
		font-family: sans-serif;
	}
	header {
		width: 100%;
		height: 80vh;
		display: table;
		box-shadow: 0px 0px 10px rgba(0, 0, 0, .8) inset;
		background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAABpJREFUGFdjZGBg+M/AwMAIo0EMFACXwakCAKzeBAUBcR4mAAAAAElFTkSuQmCC)repeat,  url(https://raw.githubusercontent.com/nyanmodel/nyanmodel.github.io/master/bgimage.jpg);
		background-position: top, center top;
		background-size: 5px, auto 80vh;
		background-attachment: scroll,fixed;
		white-space: nowrap;
	}
	#toptext {
		margin: 0 auto;
		height: 80vh;
		position: relative;
    	text-align: center;
		align-items: center;
		display: flex;
		justify-content: center;
		z-index: 2;
		/* text-align: center;
		font-family: 'Questrial', 'Helvetica', sans-serif;
		color: #333;
		display: table-cell;
		vertical-align: middle; */
	}
	#logo{
		width: 200px;
	}
	#pageTitle {
		font-size: 3rem;
	}
	#pageSubtitle {
		font-size: .5rem;
	}
	#bottomtext {
		display: inline-block;
		position: absolute;
		text-align: center;
		font-size: 60px;
		color: #fff;
		z-index: 2;
		top: 65vh;
		left: 0;
		right: 0;
		-webkit-animation: blink 1.0s ease-in-out infinite alternate;
		-moz-animation: blink 1.0s ease-in-out infinite alternate;
		animation: blink 1.0s ease-in-out infinite alternate;
	}
	#sdText {
		font-family: Helvetica, sans-serif;
		font-size: 1rem;
		font-weight: lighter;
	}
	#sdArrow {
		font-size: 3rem;
	}
	@-webkit-keyframes blink {
		0% {
			opacity: .3;
		}
		100% {
			opacity: 1;
		}
	}
	@-moz-keyframes blink {
		0% {
			opacity: .3;
		}
		100% {
			opacity: 1;
		}
	}
	@keyframes blink {
		0% {
			opacity: .3;
		}
		100% {
			opacity: 1;
		}
	}
	#nav {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		justify-content: space-between;
	}
	.nav_btn {
		font-family: 'Questrial', 'Helvetica', sans-serif;
		font-weight: normal;
		padding: 20px;
		flex-grow: 1;
		border-style: solid;
		border-width: 2px 0;
		border-color: #333;
		background-size: cover;
		background-position: center;
		text-align: center;
	}
	.nav_btn a {
		display: block;
		text-decoration: none;
		color: #000;
	}
	#profile_card{
		display: flex;
		flex-direction: column;
		width: 80%;
		margin: auto;
	}
	.profile_icon{
		margin: auto;
		text-align: center;
	}
	.profile_letter{
		margin:20px 0;
	}

	.profile_letter p.name{
		font-size: 1.3em;
		font-weight: 500;
		font-family: 'Zen Kaku Gothic New', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', sans-serif;
	}
	/* img.cont {
		max-width: 100%;
		max-height: 100vh;
		border-radius: 5px;
	} */
	img#news {
		height: 200px;
		display: table-cell;
		border-radius: 5px;
		box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
		margin: 20px;
	}
	img#icon {
		border-radius: 10px;
		text-align: center;
		width: 150px;
		margin: 20px 0px;
	}
	img#photo {
		display: none;
	}
	.gallery{
		display: -webkit-flex;
		display: flex;
		-webkit-flex-direction: row;
		flex-direction: row;
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
		align-items: stretch;
	}
	.gallery a {
		display: block;
		position: relative;
		width: 50%;
	}
	.gallery a::before {
		content: "";
		display: block;
		padding-top: 100%;
	}

	.gallery img {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		object-fit: cover;
	}


	
	/* #newsDetail{
		display: table-cell;
		margin: 3%;
		font-size: 15px;
		line-height: 30px;
	} */

	h1 {
		font-size: 2rem;
		font-family: 'Questrial', 'Helvetica', sans-serif;
		padding: 30px;
		font-weight: normal;
		margin-top: 10px;
		margin-bottom: 20px;
		margin-left: 0;
		margin-right: 0;
		color: #fff;
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(https://raw.githubusercontent.com/nyanmodel/nyanmodel.github.io/master/bgimage.jpg);
		background-size: cover;
		background-position: center;
		text-align: center;
	}
	h2 {
		font-size: 18px;
		font-weight: 300;
		font-family: 'Questrial', 'Helvetica','Zen Kaku Gothic New', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', sans-serif;
		margin: 10px 0px;
		border-style: solid;
		border-width: 0 0 2px 0;
		border-color: #333;
		color: #333;
		padding: 3%;
	}
	hr {
		border: 0;
		border-bottom: 1px dashed #8c8b8b; 
	}
	section {
		margin-left: 0;
		margin-right: 0;
		margin: 20px 0;
		align-content: center;
		font-weight: 500;
		font-family: "Shippori Mincho","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ", Meiryo, sans-serif;
		font-size: 17px;
		word-wrap: break-word;
	}
	#links_contents {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	button {
		font-size: 15px;
		color: #fff;
		padding: 10px;
		margin: 10px;
		width: 40%;
		border-radius: 5px;
		border: 0;
	}
	iframe#hirasawa {
		display: none;
	}
	ul.hblist {
		margin: 0;
		padding: 3%;
	}
	ul.hblist li {
		list-style: none;
		margin: 3px 0px;
	}
	ul.hblist li:before {
		font-family: haranyan;
		content: "③ ";
	}
	p {
		margin: 3%;
		font-size: 18px;
		line-height: 30px;
	}
	#update_contents {
		margin: 3%;
	}
	/* .pagetop {
		position: fixed;
		margin: 0;
		top: 0;
		width: 100%;
		padding: 10px;
		box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
		background: linear-gradient(-45deg, rgba(0, 130, 200, 0.8), rgba(0, 200, 130, 1));
		color: white;
		display: none;
	}
	.pagetop a {
		background-color: #ccc;
		text-align: center;
		font-family: 'Iceland', cursive;
		font-size: 50px;
		text-decoration: none;
		transform: scale(1.0);
		color: white;
	} */
	footer {
		font-weight: bold;
		bottom: 0;
		width: 100%;
		padding-top: 20px;
		padding-bottom: 20px;
		font-size: 13px;
		font-family: Helvetica, san-serif;
		text-align: center;
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(https://raw.githubusercontent.com/nyanmodel/nyanmodel.github.io/master/bgimage.jpg);
		background-size: cover;
		background-position: bottom;
		color: #fff;
	}
}