@charset "UTF-8";

/*
 * root
 */
body {
	background-color: #fff;
	color: #000;
	font-size: 16px;
}

/*
 * #container
 */
#container {
	position: relative;
	left: 0;
	z-index: 5;
	width: 100%;
	overflow: hidden;

	transition: all 0.3s ease-out;
}

/*
 * #wallpaper
 */
#wallpaper {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 100vh;
	overflow: hidden;

	transition: all 0.3s ease-out;
}

#wallpaper .bingwallpaper {
	opacity: 0;
	width: 100%;
	height: 100%;
	background-position: top center;
	background-repeat: no-repeat;
	background-size: cover;

	transition: all 0.3s ease-out;
}

#wallpaper .bingwallpaper .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;

	transition: all 0.3s ease-out;
}

body.portfolio #wallpaper {
	background-color: #fff;
}
body.clock #wallpaper {
	background-color: #000;
}

body.portfolio #wallpaper .bingwallpaper {
	filter: blur(20px);
	transform: scale3d(1.1, 1.1, 1);
	transform-origin: top;
}
body.clock #wallpaper .bingwallpaper {
	filter: none;
}

body.portfolio #wallpaper .bingwallpaper .overlay {
	background: rgba(255,255,255,0.2);
}
body.clock #wallpaper .bingwallpaper .overlay {
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.5) 100%);
}

@supports (-webkit-backdrop-filter: blur(5px)) {
	body.portfolio #wallpaper .bingwallpaper {
		filter: none;
	}
	body.portfolio #wallpaper .bingwallpaper .overlay {
		-webkit-backdrop-filter: blur(20px);
	}
}

/*
 * #header
 */
#header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	height: 50px;
	color: #fff;
	line-height: 50px;
	text-shadow: 0 1px 0 #000;

	transition: all 0.3s ease-out;
}

#header .title {
	position: relative;
	height: 50px;
	margin-left: 5%;
	font-family: "Droid Serif", serif;
	text-shadow: 1px 1px 3px #000;
	letter-spacing: 2px;
}

#header .menu-btn {
	position: absolute;
	top: 0;
	right: 10px;
}

#header .menu-btn a {
	display: block;
	color: #fff;
	line-height: 50px;
}
#header .menu-btn a:before {
	font-family: "FontAwesome";
	font-size: 1.2em;
	content: "\f061";
}

body.clock #header {
	opacity: 0;

	visibility: hidden;
}

body.contact #header .menu-btn a {
	color: #000;
	text-shadow: 0 1px 0 #ccc;
}

@media screen and (max-width: 640px) {
	#header .menu-btn {
		top: 10px;
		width: 50px;
		border-radius: 25px;
		background-color: rgba(255,255,255,0.7);
		text-align: center;
	}
	#header .menu-btn a {
		color: #333;
		text-shadow: none;
	}
	body.contact #header .menu-btn a {
		color: #333;
		text-shadow: none;
	}
}
@media screen and (max-width: 640px) and (orientation: portrait) {
	#header {
		height: 70px;
		line-height: 70px;
	}
}

/*
 * #footer
 */
#footer {
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	height: 50px;
	background-color: rgba(255,255,255,0.8);
	box-shadow: 0 0 10px -5px #000;
	color: #000;
	text-shadow: 0 1px 0 #eee;

	transition: all 0.3s ease-out;
}
#footer:hover {
	background-color: rgba(255,255,255,0.9);
}

#footer a {
	display: inline;
	color: #000;
	text-shadow: 0 1px 0 #eee;
}

#footer .copyright {
	position: absolute;
	right: 200px;
	left: 5%;
	line-height: 50px;
}
#footer .copyright .logo {
	display: none;
}

body.clock #footer {
	background: transparent;
	box-shadow: none;
	color: #fff;
	text-shadow: 0 1px 0 #000;
}

body.clock #footer a {
	color: #fff;
	text-shadow: 0 1px 0 #000;
}

body.clock #footer a, body.clock #footer .copyright span {
	opacity: 0.7;

	transition: opacity 0.3s ease-out;
}
body.clock #footer a:hover, body.clock #footer .copyright span:hover {
	opacity: 1;
}

@media screen and (max-width: 640px) and (orientation: portrait) {
	#footer {
		height: 70px;
		background-color: rgba(255,255,255,0.9);
	}
	#footer:hover {
		background-color: rgba(255,255,255,1.0);
	}
	#footer .copyright {
		line-height: 70px;
	}
	#footer .copyright span {
		display: none;
	}
	#footer .copyright .logo {
		display: inline;
		vertical-align: middle;
	}
}

body.portfolio #footer .copyright {
	display: none;
}

/*
 * #main-menu
 */
#main-menu {
	margin-right: 5%;
}

#main-menu ul {
	float: right;
	width: auto;
}

#main-menu li {
	display: inline-block;
	width: auto;
}

#main-menu li a {
	display: block;
	padding: 0 10px;
	font-family: "Droid Serif", serif;
	line-height: 50px;
	letter-spacing: 0.1em;

	transition: color 0.3s ease-out;
}
#main-menu li a:hover {
	color: #666;
}

#main-menu li a i {
	margin-right: 0.2em;
	font-size: 1.2em;
	vertical-align: text-bottom;
}

body.clock #main-menu li a:hover {
	color: #fff;
}
/*body.clock #main-menu li.portfolio i.fa:before {
	content: "\f0ab";
}*/
body.clock #main-menu li.clock {
	display: none;
}
body.clock #main-menu li.contact {
	display: none;
}
body.clock #main-menu li.apps {
	display: none;
}

body.gallery #main-menu li.portfolio a {
	color: #f33;
}
body.apps #main-menu li.apps a {
	color: #f33;
}
body.contact #main-menu li.contact a {
	color: #f33;
}

@media screen and (max-width: 640px) {
	#main-menu {
		overflow-x: scroll;

		-webkit-overflow-scrolling: touch;
	}
	#main-menu li a {
		font-size: 1.2em;
	}
	body.portfolio #main-menu {
		margin-right: 0;
	}
	body.portfolio #main-menu ul {
		float: none;
	}
}
@media screen and (max-width: 640px) and (orientation: portrait) {
	#main-menu li a {
		line-height: 70px;
	}
	body.portfolio #main-menu li a {
		line-height: 70px;
	}
}

/*
 * #article
 */
#article {
	position: relative;
	z-index: 10;
	margin-top: 0;

	transform: translateZ(0);
	transition: transform 0.3s ease-out;
}

body.portfolio #article {
	transform: translateY(-100vh);
}

#article .page {
	position: relative;
	min-height: 100vh;
	padding-bottom: 70px;
	box-sizing: border-box;
}

#article .page > .title {
	height: 70px;
	padding-left: 5%;
	color: #fff;
	font-family: "Droid Serif", serif;
	font-size: 1.5rem;
	line-height: 70px;
	text-shadow: 1px 1px 3px #000;
	letter-spacing: 3px;
}

#article .page > .title i {
	margin-right: 0.2em;
	font-size: 1.2em;
	vertical-align: text-bottom;
}

/*
 * #clock
 */
#clock .clock25 {
	position: absolute;
	top: 0;
	right: 5%;
	bottom: 0;
	height: 150px;
	margin: auto;
	color: #fff;
	font-family: "Droid Serif", serif;
	text-align: right;
	text-shadow: 3px 3px 10px #000;
	letter-spacing: 5px;
}

#clock .clock25 .time {
	font-size: 80px;
	line-height: 100px;
}
#clock .clock25 .date {
	font-size: 40px;
	line-height: 50px;
}

@media screen and (max-width: 640px) {
	#clock .clock25 {
		top: 5%;
		bottom: auto;
		height: 26vw;
	}
	#clock .clock25 .time {
		font-size: 15vw;
		line-height: 20vw;
	}
	#clock .clock25 .date {
		font-size: 5vw;
		line-height: 6vw;
	}
}

/*
 * #portfolio
 */
#article #portfolio > .title {
	height: 50px;
	line-height: 50px;
}
@media screen and (max-width: 640px) {
	#article #portfolio > .title {
		height: 70px;
		line-height: 70px;
	}
}

/*
 * $gallery
 */
#gallery {
	padding: 0 25px;
}
#gallery .gallery-wrapper {
	display: flex;
	width: 100%;
	margin: 0 auto;
	padding: 0 10px;
	box-sizing: border-box;

	flex-wrap: wrap;
}

#gallery .item {
	display: block;
	flex: 1;
	position: relative;
	min-width: 250px;
	height: 250px;
	margin: 5px;
	border-radius: 5px;
	background-color: rgba(255,255,255,0.1);
	box-shadow: none;
	overflow: hidden;

	filter: brightness(90%) contrast(90%);
	transform: translateZ(0);
	transition: filter 0.3s ease-out;
}
#gallery .item.wide {
	flex: 2;
	min-width: 510px;
}
#gallery .item:hover {
	box-shadow: 1px 1px 10px -3px #000;

	filter: brightness(100%) contrast(100%);
}

#gallery .item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 5px;
	vertical-align: middle;

	object-fit: cover;
	transform: translateZ(0);
	transition: transform 0.3s ease-out;
}
#gallery .item:hover img {
	transform: scale(1.01);
}
#gallery .item img.delay {
	opacity: 0;
}

#gallery .item i.fa {
	display: block;
	margin: 0 auto;
	color: #fff;
	font-size: 36px;
	line-height: 250px;
	text-align: center;

	animation: flash 2s infinite;
}

#gallery .item .item-title {
	position: absolute;
	bottom: -2.5em;
	width: 100%;
	padding: 0.5em 0.7em 0.5em 2.4em;
	background-color: rgba(255,255,255,0.9);
	box-shadow: 0 0 10px -5px #000;
	color: #333;
	text-overflow: ellipsis;
	white-space: nowrap;
	box-sizing: border-box;
	overflow: hidden;

	transition: bottom 0.3s ease-out;
}
#gallery .item:hover .item-title {
	bottom: 0;
}

#gallery .item:after {
	position: absolute;
	bottom: 0.5em;
	left: 0.7em;
	color: #fff;
	font-family: "FontAwesome";
	font-size: 1.0em;

	transition: color 0.3s ease-out;
}
#gallery .item:hover:after {
	color: #000;
}
#gallery .item.web:after {
	content: "\f0ac";
}
#gallery .item.dtp:after {
	content: "\f040";
}
#gallery .item.etc:after {
	content: "\f121";
}

/*レスポンシブ対応*/
@media screen and (max-width: 768px) {
	#gallery {
		padding: 0;
	}
	#gallery .item {
		min-width: 140px;
		height: 140px;

		filter: brightness(100%) contrast(100%);
	}
	#gallery .item.wide {
		min-width: 290px;
	}
	#gallery .item .item-title {
		bottom: 0;
	}
	#gallery .item:after {
		color: #000;
	}
	#gallery .item i.fa {
		line-height: 140px;
	}
}

/*
 * gridレイアウト対応
 */
@supports (display: grid) {
	#gallery {
		padding: 0;
	}
	#gallery .gallery-wrapper {
		display: grid;

		grid-auto-flow: dense;
		grid-auto-rows: 250px;
		grid-gap: 10px;
		grid-template-columns: repeat(auto-fill,minmax(250px,250px));
		justify-content: center;
	}
	#gallery .item {
		min-width: auto;
		height: auto;
		margin: 0;
	}
	#gallery .item.wide {
		grid-column: span 2;
		grid-row: span 2;
	}
	#gallery .item.wide.first {
		grid-column: 1 / span 2;
		grid-row: 1 / span 2;
	}
	#gallery .item.wide i.fa {
		line-height: 510px;
	}
	@media screen and (max-width: 768px) {
		#gallery .gallery-wrapper {
			grid-auto-rows: 140px;
			grid-template-columns: repeat(auto-fill,minmax(140px,140px));
		}
		#gallery .item.wide i.fa {
			line-height: 290px;
		}
	}
}

/*
 * #apps
 */
#article #apps {
	height: 100vh;
	padding-bottom: 0;
	background-color: rgba(0,0,0,0.7);
	background-image: url(../img/texture-white.png);
	color: #fff;
	overflow-y: hidden;
}

#apps a {
	transition: opacity 0.3s ease-out;
}
#apps a:hover {
	opacity: 0.8;
}

#apps .wait {
	/*opacity: 0;*/
	animation: none !important;
	visibility: hidden;
}

#apps > .title {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;

	transition: opacity 0.3s ease-out;
}
body.apps #apps > .title {
	opacity: 0.3;
}

#apps .apps-works {
	width: 100%;
	height: 100%;
}

#apps .work {
	max-width: 100vw;
	height: auto;
	min-height: 100vh;
}

/*
 * #apps work.clock
 */
#apps .clock {
	position: relative;
	height: 640px;
	padding-top: 50px;
	padding-bottom: 50px;
	text-align: center;
	box-sizing: border-box;
}
@media screen and (min-height: 481px) {
	#apps .clock .clock-inner {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: auto;
		height: 460px;
		margin: auto;
	}
}

#apps .clock .fadein {
	animation: slidedown 1.5s forwards;
}

#apps .clock .catch {
	font-family: "Oxygen Mono", monospace;
	font-size: 48px;
	line-height: 2.0em;
	letter-spacing: 0.1em;
}

#apps .clock .description {
	margin: 1.0em 0 3.0em 0;
	font-size: 20px;
	font-style: oblique;
	line-height: 2.0em;
	text-align: center;
	letter-spacing: 0.1em;
}
#apps .clock .description span {
	display: block;
}

#apps .clock .downloads {
	width: 100%;
}

#apps .clock .downloads li {
	display: inline-block;
	width: 200px;
	height: 60px;
	margin: 0 5px;
	vertical-align: middle;
}

#apps .twitter {
	position: relative;
	border-radius: 5px;
	background-color: #1da1f2; /* twitter main color */
	text-align: left;
	box-sizing: border-box;
	overflow: hidden;
}
#apps .twitter .jst {
	display: block;
	padding: 10px 0 10px 60px;
	color: #fff;
	font-size: 0.8em;
	box-sizing: border-box;
}
#apps .twitter .jst:before {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 60px;
	height: 60px;
	border-radius: 5px;
	background-image: url(../img/logo-twitter.png);
	background-size: contain;
	content: "";
}

#apps .twitter .gmt {
	display: block;
	position: absolute;
	bottom: 10px;
	left: 60px;
	height: 1.0em;
	color: #fff;
	font-size: 0.8em;
	line-height: 1.0em;
}

#apps .github {
	position: relative;
	border-radius: 5px;
	background-color: #fffafa;
	text-align: left;
	box-sizing: border-box;
	overflow: hidden;
}
#apps .github a {
	display: block;
	padding: 10px 60px 10px 10px;
	color: #333;
	line-height: 1.3em;
	box-sizing: border-box;
}
#apps .github a:before {
	display: block;
	position: absolute;
	top: 5px;
	right: 5px;
	width: 50px;
	height: 50px;
	background-image: url(../img/logo-github.png);
	background-size: contain;
	content: "";
}
#apps .github .dl-link {
	color: #999;
}
#apps .github .dl-link:before {
	margin-right: 0.5em;
	font-family: "FontAwesome";
	content: "\f019";
}

@media screen and (max-width: 640px) {
	#apps .clock .catch {
		font-size: 7vw;
	}
	#apps .clock .description {
		font-size: 4vw;
	}
	#apps .clock .downloads li {
		margin-bottom: 10px;
	}
}
@media screen and (max-height: 480px) and (orientation: landscape) {
	#apps .clock .text {
		float: left;
		width: 60%;
	}
	#apps .clock .downloads {
		float: right;
		width: 40%;
		margin-top: 1.0em;
		text-align: left;
	}
	#apps .clock .downloads li {
		margin: 1vh 0;
	}
	#apps .clock .catch {
		font-size: 4vw;
	}
	#apps .clock .description {
		font-size: 2vw;
	}
}

/*
 * #apps .wordpress
 */
#apps .wordpress {
	position: relative;
}

#apps .wordpress .fadein {
	animation: slidein 1s forwards;
}

#apps .wordpress .wp-title {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 30%;
	height: 185px;
	margin: auto;
	font-family: "Droid Serif", serif;
	font-size: 30px;
	line-height: 45px;
	text-align: center;
	letter-spacing: 0.1em;
}
#apps .wordpress .wp-title i.fa {
	display: block;
	margin: 0 0 0.2em 0;
	font-size: 80px;
}

#apps .wordpress .wp-works {
	position: absolute;
	top: 20vh;
	bottom: 20vh;
	left: 30%;
	width: 60%;
	height: 60vh;
	margin: auto;
	box-shadow: 0 20px 50px -15px #000;
}

#apps .wordpress .ft-theme {
	background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%,rgba(0,0,0,0.9) 100%), url(../img/wordpress-image.jpg);
	background-position: top center;
	background-size: cover;
}

#apps .wordpress .relatedp {
	background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.5) 100%), url(../img/network-image.jpg);
	background-position: bottom center;
	background-size: cover;
}

#apps .wordpress .fcontact {
	background-color: #305097;
	background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.5) 100%), url(../img/logo-facebook-white.png);
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: contain;
}

#apps .wordpress .lfmutils {
	background-color: #d51007;
	background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.5) 100%), url(../img/logo-lastfm-white.png);
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: contain;
}

#apps .wordpress .wp-work {
	position: relative;
}

#apps .wordpress .wp-work-title {
	display: inline-block;
	margin: 5% 5% 2.0rem 5%;
	padding: 1.0rem 1.5rem;
	border: 2px solid #fff;
	font-family: "Oxygen Mono", "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", monospace;
	font-size: 1.5rem;
	letter-spacing: 0.1em;
}

#apps .wordpress .description {
	margin: 0 8%;
	font-style: oblique;
	font-weight: bold;
	text-shadow: 1px 1px 3px #000;
}

#apps .wordpress .download {
	display: block;
	position: absolute;
	bottom: 5%;
	left: 5%;
	min-width: 200px;
	min-height: 60px;
}
#apps .wordpress .download span {
	display: block;
}

@media screen and (max-width: 640px), screen and (max-height: 480px) {
	#apps .wordpress .wp-title {
		position: static;
		width: 90%;
		height: 70px;
		line-height: 70px;
		text-align: right;
		letter-spacing: 0;
		white-space: nowrap;
	}
	#apps .wordpress .wp-title i.fa {
		display: inline-block;
		font-size: 36px;
		vertical-align: middle;
	}
	#apps .wordpress .wp-title span {
		display: none;
		/*display: inline-block;*/
	}
	#apps .wordpress .wp-title br {
		display: none;
	}
	#apps .wordpress .wp-works {
		position: static;
		width: 90%;
		height: calc(90vh - 70px);
	}
	#apps .wordpress .wp-work-title {
		margin: 3vmax;
		padding: 1vmax 3vmax;
		font-size: 4vmax;
		letter-spacing: 0;
	}
	#apps .wordpress .description {
		font-size: 2vmax;
	}
	#apps .wordpress .download {
		right: 1vmax;
		bottom: 2vmax;
		left: auto;
		width: 50%;

		transform: scale(0.8);
	}
}

/* .swiper 上書き */
#apps .apps-prev, #apps .apps-next {
	opacity: 0.5;
	background: none;
	line-height: 44px;

	transition: opacity 0.3s ease-out;
}
#apps .apps-prev:hover, #apps .apps-next:hover {
	opacity: 0.9;
}
#apps .apps-prev:after {
	color: #fff;
	font-family: "FontAwesome";
	font-size: 36px;
	content: "\f137";
}
#apps .apps-next:after {
	color: #fff;
	font-family: "FontAwesome";
	font-size: 36px;
	content: "\f138";
}
#apps .apps-prev.swiper-button-disabled, #apps .apps-next.swiper-button-disabled {
	visibility: hidden;
}
#apps .apps-pagination .swiper-pagination-progressbar-fill {
	background: rgba(255,255,255,0.5);
}

#apps .wp-pagination .swiper-pagination-bullet {
	background: rgba(255,255,255,0.8);
}
#apps .wp-pagination .swiper-pagination-bullet-active {
	background: #fff;
}

/*
 * #contact
 */
#article #contact {
	padding-bottom: 0;
}

#article #contact > .title {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

#contact .content {
	display: flex;
	min-height: 100vh;
}

#contact .caution {
	width: 300px;
	padding: 70px 40px 30px 40px;
	background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%,rgba(0,0,0,1) 100%);
	color: #fff;
	box-sizing: border-box;
}

#contact .caution .label {
	margin-bottom: 1.0em;
	padding: 5px 0;
	border-bottom: 3px solid #f66;
	color: #f66;
	text-align: center;
}

#contact .caution p {
	margin: 0.5em 0;
	font-size: 16px;
}
#contact .caution .note {
	position: relative;
	padding-left: 1.0em;
	color: #ccc;
	font-size: 0.8em;
}
#contact .caution .note:before {
	position: absolute;
	left: 0;
	content: "※";
}

#contact .fb-login-btn {
	margin: 1.0em;
	text-align: center;
}

#contact .fb-login-btn a {
	display: block;
	position: relative;
	padding: 0.5em 1.0em;
	border: 3px solid #305097;
	border-radius: 2.0em;
	background-color: #fff;
	/*box-shadow: 1px 1px 3px #999;*/
	color: #305097;
	font-size: 0.8em;

	transition: background-color 0.3s ease-out;
}
#contact .fb-login-btn a:hover {
	background-color: #305097;
	/*box-shadow: 1px 1px 3px #999;*/
	color: #fff;
	/*opacity: 0.8;*/
}
#contact .fb-login-btn a:before {
	margin-right: 1.0em;
	font-family: "FontAwesome";
	font-size: 1.2em;
	content: "\f230";
}

#contact .fb-login-btn a.login {
	visibility: hidden;
}
#contact .fb-login-btn a.login span:before {
	font-family: monospace;
	letter-spacing: 0.1em;
	content: "Connect";
}
#contact .fb-login-btn a.logout span:before {
	font-family: monospace;
	letter-spacing: 0.1em;
	content: "Disconnect";
}

#contact .contact-area {
	width: calc(100% - 300px);
	padding: 70px 20px;
	background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%,rgba(255,255,255,1) 100%);
	color: #333;
	box-sizing: border-box;
}

@media screen and (max-width: 640px) {
	#contact .content {
		display: block;
		min-height: auto;
	}
	#contact .caution {
		width: 100%;
		min-height: auto;
		padding-bottom: 1.0em;
	}
	#contact .caution p {
		font-size: 14px;
	}
	#contact .contact-area {
		width: 100%;
		padding: 0 10px 70px 10px;
	}
}

/*
 * #contact-form
 */
#contact-form {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

#contact-form label {
	display: block;
	padding: 5px 0;
}
@media screen and (max-width: 640px) {
	#contact-form label {
		padding-top: 1.0em;
	}
}

#contact-form .message {
	width: 100%;
	height: 10.0em;
	margin: 10px 0 15px 0;
	padding: 1.0em;
	border-radius: 5px;
	background-color: rgba(255,255,255,0.7);
	box-shadow: 0 1px 5px #ccc inset;
	font-size: 1.1em;
	box-sizing: border-box;

	resize: none;
	transition: box-shadow 0.2s linear;
}
#contact-form .message:focus {
	border: 1px solid #305097;
	box-shadow: 0 0 0 #fff inset, 0 0 10px #305097;
}

#contact-form .submit {
	width: 100%;
	padding: 0.5em 1.0em;
	border: 2px solid #305097;
	border-radius: 10px;
	background-color: #305097;
	box-shadow: 1px 1px 3px #333;
	color: #fff;
	font-size: 1.1em;
	box-sizing: border-box;
	cursor: pointer;

	transition: all 0.2s linear;
}
#contact-form .submit:hover {
	background-color: #fff;
	color: #305097;
}

#contact-form .submit.sended, #contact-form .submit.sended:hover, #contact-form .submit:disabled, #contact-form .submit:disabled:hover {
	border: 2px solid #ccc;
	background-color: #ccc;
	box-shadow: none;
	color: #333;
	cursor: default;
}
#contact-form .submit.error, #contact-form .submit.error:hover {
	border: 2px solid #f33;
	background-color: #f33;
	box-shadow: none;
	color: #fff;
	cursor: default;
}

#contact-form .submit:before {
	margin-right: 0.5em;
	font-family: "FontAwesome";
	content: "\f230";
}
#contact-form .submit.logedin:before {
	content: "\f1d8";
}
#contact-form .submit.sending:before {
	display: inline-block;
	content: "\f110";

	animation: spin 1.5s linear infinite;
}
#contact-form .submit.sended:before {
	content: "\f058";
}
#contact-form .submit.error:before {
	content: "\f00d";
}

#contact-form .submit span {
	display: inline-block;
}
#contact-form .submit span:before {
	display: inline-block;
	content: "ログインして送信する";
}
#contact-form .submit.logedin span:before {
	content: "メッセージを送信する";
}
#contact-form .submit.sending span:before {
	content: "メッセージ送信中…";
}
#contact-form .submit.sended span:before {
	content: "メッセージを送信しました";
}
#contact-form .submit.error span:before {
	content: "メッセージの送信に失敗しました";
}

/*
 * .googlead
 */
.googlead {
	width: 100%;
	max-width: 800px;
	margin: 30px auto;
}

/*
 * #side-menu
 */
#side-menu {
	position: fixed;
	top: 0;
	right: 0;
	/*z-index: -1;*/
	width: 300px;
	height: 100%;
	padding: 0;
	background-color: #333;
	color: #fff;
	box-sizing: border-box;
	overflow: hidden;
}

#side-menu .inner {
	margin: 0 20px;
}

#side-menu .side-header {
	position: fixed;
	top: 0;
	z-index: 1;
	width: 300px;
	height: 50px;
	margin: 0 -20px;
	background-color: #666;
	box-shadow: 0 1px 5px #000;
	line-height: 50px;
}

#side-menu .side-header a {
	display: block;
	opacity: 1;
	position: relative;
	padding-left: 10px;
	color: #fff;

	transition: opacity 0.3s ease-out;
}
#side-menu .side-header a:hover {
	opacity: 0.8;
}

#side-menu .side-header .title {
	font-family: "Oxygen Mono", monospace; /* "Droid Serif", serif;*/
	font-size: 18px;
	font-weight: normal;
	line-height: 50px;
	letter-spacing: 0.1em;
}

#side-menu .side-header img.logo {
	display: block;
	position: absolute;
	top: 0;
	right: 10px;
	bottom: 0;
	height: 32px;
	margin: auto 0;
}

#side-menu i.fa {
	font-size: 1.1em;
}

#side-menu .widget {
	margin: 10px 0 30px 0;
}

#side-menu .widget .title {
	margin-bottom: 10px;
	padding: 5px 0;
	border-radius: 5px;
	background-color: #666;
	color: #fff;
	font-family: "Oxygen Mono", monospace;
	text-align: center;
	letter-spacing: 0.2em;
}

#side-menu .widget .title i.fa {
	margin-left: -0.5em;
}

#side-menu .widget .about {
	margin-top: 0.5em;
	font-size: 0.7em;
	text-align: right;
}
#side-menu .widget .about a {
	color: #ccc;
	text-decoration: none;
}
#side-menu .widget .about a:hover {
	color: #fff;
}
#side-menu .widget .about a:before {
	font-family: "FontAwesome";
	content: "\f059";
}

#side-menu .clock {
	font-family: "Oxygen Mono", monospace;
	text-align: center;
}
#side-menu .clock .time {
	font-size: 70px;
	line-height: 80px;
}
#side-menu .clock .time .flashing {
	margin: 0 -5px;
}
#side-menu .clock .date {
	font-size: 35px;
	line-height: 40px;
}

#side-menu .twitter .content {
	max-height: 300px;
}

#side-menu .share .content {
	font-size: 2.5em;
	text-align: center;
}

#side-menu .share a {
	display: inline-block;
	width: 25%;
	color: #fff;

	transition: color 0.3s ease-out;
}
#side-menu .share a:hover {
	text-shadow: 0 1px 0 #fff;
}
#side-menu .share a.twitter:hover {
	color: #1da1f2; /* twitter main color */
}
#side-menu .share a.facebook:hover {
	color: #305097; /* facebook main color */
}
#side-menu .share a.gplus:hover {
	color: #db4a39; /* google+ main color */
}

#side-menu .side-footer {
	color: #ccc;
	text-align: center;
}

#side-menu .side-footer .title {
	font-family: "Oxygen Mono", monospace;
}

#side-menu .side-footer img {
	margin: 10px;
}

#side-menu .side-footer .mii {
	border-radius: 50%;
}

#side-menu .copyright {
	line-height: 1.2em;
}

@media screen and (min-width: 941px) {
	body.open-menu #wallpaper {
		width: calc(100% - 300px);
	}
	body.open-menu #container {
		width: calc(100% - 300px);
		box-shadow: 5px 0 10px -5px #000;
	}
	body.open-menu #header {
		width: calc(100% - 300px);
	}
	body.open-menu #footer {
		width: calc(100% - 300px);
	}
}
@media screen and (max-width: 940px) {
	body.open-menu #container {
		box-shadow: 5px 0 10px -5px #000;

		filter: brightness(50%) blur(1px);
		pointer-events: none;
		transform: translateX(-300px);
	}
	body.open-menu #wallpaper, body.open-menu #header, body.open-menu #footer {
		filter: brightness(50%) blur(1px);
		pointer-events: none;
		transform: translateX(-300px);
	}
	body.open-menu #header {
		opacity: 0;
	}
	body.open-menu #side-menu .side-header .title:before {
		margin-right: 0.5em;
		font-family: "FontAwesome";
		content: "\f060";
	}
}

/*
 * #view
 */
#view {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 200;
	width: 100%;
	height: 100vh;
}

#view .loading {
	display: none;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 32px;
	height: 32px;
	margin: auto;
	color: #fff;
	font-size: 32px;
	text-align: center;
	box-sizing: border-box;
}

#view .inner {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	max-width: 80vw;
	max-height: 80vh;
	margin: auto;
	text-align: center;
}

#view .inner img {
	display: none;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	box-shadow: 0 20px 100px -30px #000;
}

#view .info {
	position: fixed;
	top: 0;
	right: 0;
	width: 300px;
	height: 100vh;
	padding-bottom: 50px;
	background-color: rgba(0,0,0,0.5);
	color: #fff;
	box-sizing: border-box;
	overflow-y: auto;

	-webkit-overflow-scrolling: touch;
	transition: right 0.3s ease-out;
}
#view .info.close {
	right: -250px;
}

#view .info a {
	color: #fff;
}
#view .info a:hover {
	opacity: 0.8;
}

#view .info > a, #view .info > .detail, #view .info > .books {
	display: block;
	position: relative;
	padding: 1.0em 1.0em 1.0em 50px;
}
#view .info > a:before, #view .info > .detail:before, #view .info > .books:before {
	display: block;
	position: absolute;
	left: 0;
	width: 50px;
	font-family: "FontAwesome";
	text-align: center;
}

#view .info .close {
	background-color: #f00;
}
#view .info .close:before {
	content: "\f00d";
}
#view .info .toggle, #view .info .link {
	background-color: rgba(0,0,0,0.5);
}
#view .info .toggle:before {
	content: "\f0ec";
}
#view .info .link:before {
	content: "\f08e";
}
#view .info .detail:before {
	content: "\f05a";
}
#view .info .books:before {
	content: "\f02d";
}

#view .info .link span {
	margin-left: 0.5em;
	color: #f00;
	font-size: 0.7em;
}

#view .info .detail .title {
	margin-bottom: 0.5em;
	/*font-family: "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;*/
	font-size: 1.2em;
}

#view .info .detail .details dt {
	border-bottom: 1px solid #fff;
	font-size: 0.9em;
}

#view .info .detail .details dd {
	margin-bottom: 0.5em;
	font-size: 0.9em;
	text-align: right;
}

#view .info .books {
	display: none;
}

#view .info .books dt {
	margin-bottom: 0.5em;
	border-bottom: 1px solid #fff;
}

#view .info .books dd {
	margin: 0.5em auto;
	text-align: center;
}

/*
 * body.viewer
 */
body.viewer #container {
	position: fixed;
}
body.viewer #article {
	opacity: 0;

	transition-duration: 0s;
}
body.viewer #header {
	top: -50px;
}
body.viewer #footer {
	bottom: -50px;
}
body.viewer #view {
	display: block;
}

/*
 * #simple-overlay
 */
#simple-overlay .dialog {
	border: none;
	border-radius: 10px;
	background-color: rgba(255,250,250,0.9);
	color: #006fab;
	overflow: hidden;
}

#simple-overlay .text {
	color: #333;
}
#simple-overlay .text p {
	margin: 0.5em 0;
}

#simple-overlay .text input {
	width: 100%;
	padding: 0.5em;
	border-radius: 5px;
	background-color: rgba(255,255,255,0.5);
	box-shadow: 0 2px 10px -5px #000 inset;
	font-size: 1.0em;
	box-sizing: border-box;
}

#simple-overlay .control {
	justify-content: space-around;
}
#simple-overlay .control button {
	color: #006fab;
	font-size: 1.2em;
	font-weight: normal;
}
#simple-overlay .control button:hover {
	font-weight: bold;
}
