/*
 * Style sheet for nstaff
 */

*{
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body{
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	background-color: #ddd;
}

#contents{
	display: flex;
	flex-direction: column;
	width: 800px;
	margin: 0 auto;
	background-color: white;
}

@media screen and (max-width: 640px) {
#contents{
	width: auto;
}
} /* @media */

#head{
	position: relative;
	height: 120px;
	/*background-color: #6ae;*/
	background: linear-gradient(to bottom right, #37b, #9df);
}

@media screen and (max-width: 640px) {
#head{
	text-align: center;
}
} /* @media */


#menu a{
	text-decoration: none;
}

#head h1{
	margin: 5px 40px;
	color: white;
	font-size: 60px;
}

@media screen and (max-width: 640px) {
#head h1{
	font-size: 40px;
}
} /* @media */

@media screen and (max-width: 320px) {
#head h1{
	margin: 5px;
	font-size: 14vw;
}
} /* @media */

#head h2{
	position: absolute;
	margin: auto;
	left: 70%;
	top: 45%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 20px;
}

@media screen and (max-width: 640px) {
#head h2{
	position: relative;
	margin: 10px auto 0;
	left: 50%;
	top: 10%;
	font-size: 14px;
}
} /* @media */

@media screen and (max-width: 320px) {
#head h2{
	top: 20%;
	font-size: 7vw;
}
} /* @media */

#menu{
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 0);
	color: white;
	font-size: 14px;
}

@media screen and (max-width: 640px) {
#menu{
	width: 100%;
}
} /* @media */

@media screen and (max-width: 320px) {
#menu{
	font-size: 4vw;
}
} /* @media */

#menu span{
	font-weight: bold;
}

#menu a:link, #menu a:visited, #menu a:active{
	color: white;
}
#menu a:hover{
	color: #faa;
}

#main{
	position: relative;
    display: block;
    height: calc(100dvh - 200px);
	min-height: 400px;
	overflow-y: scroll;
	text-align: center;
}

@media screen and (max-width: 640px) {
.main{
    height: calc(100vh - 200px);
}
} /* @media */

#foot{
	position: relative;
	height: 80px;
	/*background-color: #6ae;*/
	background: linear-gradient(to top left, #37b, #9df);
}

#foot p{
	position: absolute;
	right: 20px;
	bottom: 5px;
	color: white;
}

.index_area{
	display: flex;
	justify-content: center;
}

@media screen and (max-width: 640px) {
.index_area{
	flex-flow: column;
}
} /* @media */

.index_area div{
	width: 200px;
	margin: 40px;
	text-align: center;
}

@media screen and (max-width: 640px) {
.index_area div{
	max-width: 100%;
	margin: 20px auto;
}
} /* @media */

.index_area img{
	display: block;
	width: 200px;
	max-width: 100%;
	height: auto;
	border-radius: 20px;
}

.index_area p{
	margin-top: 10px;
	font-weight: bold;
}

.talk_area{
	padding: 20px;
}

.talk_unit {
	display: flex;
	flex-direction: row;
}

.talk_unit img{
	display: block;
	width: 100px;
	height: 100px;
	border-radius: 20px;
}

.talk_unit p{
	max-width: 480px;
	margin: 5px 0;
	padding: 10px;
	/*background-color: #cfc;*/
	background: linear-gradient(to bottom right, #cfc, #efe);
	font-size: 14px;
	border-radius: 10px;
}

.left{
	justify-content: flex-start;
}

.right{
	justify-content: flex-end;
}

.left span{
	display: block;
	margin-top: 30px;
	width: 12px;
	height: 12px;
	border: solid 12px transparent;
	border-right: solid 12px #cfc;
}

.right span{
	display: block;
	margin-top: 30px;
	width: 12px;
	height: 12px;
	border: solid 12px transparent;
	border-left: solid 12px #efe;
}

.left p{
	text-align: left;
}

.right p{
	text-align: right;
}

.album_area{
	padding: 15px;
	column-count: 3;
	column-width: 240px;
}

.album_area img{
	width: 240px;
	height: 240px;
	cursor: pointer;
}

.even{
	padding-top: 120px;
}

@media screen and (max-width: 640px) {
.even{
	padding-top: 0;
}
} /* @media */

#photo_bg{
	position: fixed;
	display: none;
	width: 100vw;
	height: 100vh;
	left: 0;
	top: 0;
	background-color: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.5s;
}

#photo_bg div{
	position: relative;
	width: 600px;
	height: 600px;
	margin: 100px auto;
	background-color: white;
	text-align: center;
	border-radius: 20px;
	transform: scale(0, 1);
	transition: transform 0.5s;
}

@media screen and (max-width: 640px) {
#photo_bg div{
	width: 100vw;
	height: 100vw;
}
} /* @media */

#photo_bg img, #photo_bg video{
	position: absolute;
	display: block;
	width: 520px;
	height: 520px;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	margin: auto;
	object-fit: contain;
}

@media screen and (max-width: 640px) {
#photo_bg img, #photo_bg video{
	width: 90vw;
	height: 90vw;
}
} /* @media */

#photo_bg span{
	position: absolute;
	width: 100%;
	left: 0;
	right: 0;
	bottom: 10px;
	text-decoration: none;
	font-size: 14px;
	border-radius: 16px;
}

@media screen and (max-width: 640px) {
#photo_bg span{
	bottom: 2px;
	font-size: 3vw;
}
} /* @media */


.pairs_main p{
	padding: 10px;
	font-size: 14px;
}

.pairs_main a{
	position: absolute;
	display: inline-block;
	width: 100px;
	height: 32px;
	top: 5px;
	right: 10px;
	background-color: white;
	color: #159;
	line-height: 30px;
	font-size: 14px;
	text-decoration: none;
	border: solid 1px black;
	border-radius: 16px;
}

@media screen and (max-width: 640px) {
.pairs_title p{
	display: block;
	width: calc(100% - 100px);
	text-align: left;
}
} /* @media */

.pairs_area{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	background-color: #eee;
}

.pairs_area div{
	position: relative;
	width: 160px;
	height: 240px;
	margin: 16px;
}

@media screen and (max-width: 640px) {
.pairs_area div{
	width: 28vw;
	height: 42vw;
	margin: 2vw;
}
} /* @media */

.pairs_area p{
	position: absolute;
	overflow: hidden;
	width: 160px;
	height: 240px;
	background-color: white;
	border: solid 1px black;
	border-radius: 16px;
	backface-visibility: hidden;
	-webkit-backface-visibility:hidden;
	transform: rotateY(0deg);
	transition: transform 1s;
}

@media screen and (max-width: 640px) {
.pairs_area p{
	width: 28vw;
	height: 42vw;
}
} /* @media */

.pairs_area img{
	position: absolute;
	width: 100%;
	height: auto;
	margin: auto;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.pairs_area span{
	position: absolute;
	display: block;
	width: 120px;
	height: 200px;
	margin: auto;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background-color: #6ae;
}

@media screen and (max-width: 640px) {
.pairs_area span{
	width: 20vw;
	height: 34vw;
}
} /* @media */

.pairs_area .front{
	transform: rotateY(180deg);
}

.pairs_area .back img{
	height: 200px;
}

#pairs_message{
	position: fixed;
	display: none;
	width: 100vw;
	height: 100vh;
	left: 0;
	top: 0;
	background-color: rgba(255, 255, 255, 0);
	color: #1d6;
	line-height: 100vh;
	text-align: center;
	font-size: 60px;
	transition: background-color 2s;
}

@media screen and (max-width: 640px) {
#pairs_message{
	font-size: 5vw;
}
} /* @media */


#pairs_message span{
	display: inline-block;
	transform: rotateY(-90deg);
	transition: transform 1s;
}

