

body > article {
	width: 57.5em;
	margin-top: 7em;
	margin-left: auto;
	margin-right: auto;
	clear: both;
}


/* THUMBNAIL */

.work .thumbnail {
	float: left;
}
.work .thumbnail img {
	max-width: 27.5em;
}
.work .thumbnail::after {
	display: block;
	content: "";
	clear: both;
}
.work .thumbnail::after {
	width: 5em;
	height: 5em;
	background-repeat: no-repeat;
	background-size: 100%;
	background-position: bottom;
	display: block;
	position: absolute;
	margin-top: -5em;
	pointer-events: none;
}
.work .thumbnail.video::after {
	background-image: url("/resource/image/saisei.svg");
}
.work .thumbnail.images::after {
	background-image: url("/resource/image/view-images.svg");
}

/* WORK */

.work {
	margin-bottom: 9em;
}
.work::after {
	content: "";
	display: block;
	clear: both;
}
.work main {
	padding-top: 0.5em;
	width: 26em;
	float: right;
}

.work main hgroup h1,
.work main hgroup h2 {
	font-family: "ヒラギノ角ゴ Pro W6", sans-serif;
	font-weight: bold;
	letter-spacing: 0.15em;
	line-height: 2;
}
.work main hgroup h1 {
	font-size: 1.1em;
}
.work main hgroup h2 {
	font-size: 0.8em;
}

.work main > * {
	font-size: 0.9em;
	line-height: 1.9;
}
.work main .details {
	margin-top: 4em;
	font-size: 0.72em;
}
.work main .details h1 {
	font-family: "ヒラギノ角ゴ Pro W6", sans-serif;
	font-weight: bold;
}
.work main .details .info {
	font-size: 1.1em;
}


/* OVERLAY */

.overlay {
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(179, 179, 179, 0.61);
	-webkit-transform-style: preserve-3d;
	        transform-style: preserve-3d;
	z-index: 1000;
}
.overlay.on {
	display: block;
}
.overlay .inner {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 10em;
	min-height: 10em;
	-webkit-transform: translateX(-50%) translateY(-50%);
	        transform: translateX(-50%) translateY(-50%);
	box-shadow: 0 10pt 36pt 5pt rgba(0, 0, 0, 0.54);
	background-color: black;
}
.overlay .inner > * {
	display: block;
}


.overlay.images img {
	display: none;
	max-width: 52em; /* fix for old Android stock browser? */
	max-width: 90vw;
	max-height: 90vh;
}
.overlay.images img.on {
	display: block;
}
.overlay.images .inner {
	cursor: pointer;
}
.overlay.images .navigation::before,
.overlay.images .navigation::after {
	content: "";
	top: 50%;
	margin-top: -2.5em;
	display: block;
	position: absolute;
	pointer-events: none;
	width: 5em;
	height: 5em;
	background-repeat: no-repeat;
	background-size: 1.6em;
	background-position: left;
	opacity: 0.3;
}
.overlay.images .navigation::before {
	background-image: url("../image/image-nav.svg");
	left: 1em;
}
.overlay.images .navigation::after {
	background-image: url("../image/image-nav.svg");
	right: 1em;
	-webkit-transform: rotateZ(180deg);
	        transform: rotateZ(180deg);
}


/* OVERLAY X */

.overlay .inner::after {
	content: "×";
	display: block;
	position: absolute;
	right: -0.8em;
	top: -0.05em;
	font-size: 3em;
	line-height: 0.5em;
	font-family: "Arial", "Helvetica", sans-serif;
	font-weight: bold;
	color: white;
	text-shadow: 0 0 0.5em rgba(0, 0, 0, 0.54);
	pointer-events: none;
}


/* OVERLAY SPINNER */

.overlay .inner::before {
	content: "•\00a0\00a0";
	position: absolute;
	left: 50%;
	top: 50%;
	font-family: "Arial", "Helvetica", sans-serif;
	font-weight: bold;
	color: white;
	font-size: 5em;
	z-index: -1;
	-webkit-animation-name: center-spin;
	        animation-name: center-spin;
	-webkit-animation-duration: 2s;
	        animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	        animation-iteration-count: infinite;
	-webkit-animation-timing-function: linear;
	        animation-timing-function: linear;
}

@-webkit-keyframes center-spin {
	from {
		-webkit-transform: translate(-50%, -50%) rotateZ(0);
	}
	to {
		-webkit-transform: translate(-50%, -50%) rotateZ(360deg);
	}
}
@keyframes center-spin {
	from {
		transform: translate(-50%, -50%) rotateZ(0);
	}
	to {
		transform: translate(-50%, -50%) rotateZ(360deg);
	}
}

