@charset "utf-8";

p{
	word-wrap:break-word;
}

div{
	box-sizing: border-box;
}

img{
	max-width: 100%;
}

a{
	text-decoration: none;
}

.wrapper{
	max-width: 100vw;
	min-height: 100vh;
	position: relative;
}

header{
	height: 75px;
	border-bottom:solid 5px #ccc;
	box-sizing: border-box;
}

.global-nav {
	display: none;
}
/*ハンバーガーメニュー start*/
label {
    position: absolute;
    z-index: 1;
}

input {
    display: none;
}

input:checked ~ label {
    right: 0;
}

/*burger*/
.burger {
    position: relative;
    top: 25px;
	-webkit-tap-highlight-color:rgba(0,0,0,0);
    cursor: pointer;
	outline: none;
}

.burger g {
    stroke: #0f0f0f;
    transition: stroke 0.25s ease-in-out;    
}

.burger g:hover {
    stroke: darken(#0f0f0f, 20%);
}

input:checked ~ label .burger {
    opacity: 0;
}

/*close*/
.close {
    position: relative;
    top: 24px;
	-webkit-tap-highlight-color:rgba(0,0,0,0);
    cursor: pointer;
    opacity: 0;
}

.close g:hover {
    stroke: darken(#0f0f0f, 20%);
}

.close g {
    stroke: #0f0f0f;
    transition: stroke 0.25s ease-in-out;    
}

.close line {
    transform-origin: 0%;
}

.close g {
    transform: rotateZ(45deg);
    transform-origin: 50%;
}

input:checked ~ label .close {
    opacity: 1;
}

/*menu*/
.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    position: absolute;
    /*opacity: 0;*/
	visibility: hidden;
    width: 100vw;
    height: 10em;
	padding-top: 75px;
    background-color: rgba(225,225,225,0.5);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #0f0f0f;
    text-transform: uppercase;
    font-size: 24px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
}

input:checked ~ .menu {
    /*opacity: 1;*/
	visibility: visible;
}

.menu div {
    margin-top: 50px;
    transition: margin 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu div a{
	color: #0f0f0f;
	-webkit-tap-highlight-color:rgba(0,0,0,0);
    cursor: pointer;
}

.menu div a:focus,
.menu div a:hover{
	color: #666;
}

input:checked ~ .menu div {
    margin-top: 0px;
}

/*ハンバーガーメニュー　end*/

main{
	padding-top: 25px;
	padding-bottom: 100px;
	font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
	line-height: 1.5em;
}

.workRow,.work{
	width: 100%;
}

.workRow{
	margin-bottom: 50px;
}

.work > img{
	width: 100%;
}

.workMemo{
	width: 100%;
	padding: 0.5em;
}

.workMemo p{
	margin-bottom: 0.5em;
}

.origin{
	width: 100%;
	text-align: center
}

.origin p{
	width: 100%;
}

.originImg{
	width: 40%;
}

.originImg > img{
	width: 50%;
	object-fit: contain;
	cursor: pointer;
	opacity: 1;
	transition: ease 0.5s;
}

.originImg > img:hover{
	opacity: 0.5;
}

/* modal start*/

.modal-wrapper {
     width: 100%;
     height: 100%;
     position: fixed;
     top: 0;
     left: 0;
     background: rgba(0,0,0,0.5);
     pointer-events: none;
     opacity: 0;
     transition: 0.25s ease-out;
}

.modal-wrapper.show {
     opacity: 1;
     pointer-events: all;
	z-index: 9999;
}

.modal-container,
.modal-image{
     object-fit: cover;
     transition: 0.5s ease-out;
     opacity: 0;
}

.modal-container{
	position: absolute;
     width: 100%;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
	color:#fff;
	text-align: center;
}

.modal-container.show,
.modal-image.show {
     opacity: 1;
}
/* modal end*/

/*Contact form start*/
.contact{
	display:flex;
	justify-content: center;
	align-items: center;
}

.alert{
	color: #e00;
	background-color: #f99;
	text-align: center;
	padding-top:1em;
	padding-bottom: 1em;
	font-weight: bold;
	margin-bottom: 25px;
}

.cInput,
.customerType,
.btn{
	display: inline-block;
}

.cName,.cMail,.cType,#campany{
	padding-bottom: 0.5em;
}

.cName,.cMail{
	display: flex;
	box-sizing: border-box;
	width: 100%;
}

.cTitle{
	width: 5em;
	text-align: justify;
	text-align-last:justify;
}

.customerType{
	margin:0 5px 3px 5px;
}

.cType > label{
	position: relative;
	display: block;
}

.sName,.sMail,.sType,.s_cName,.sSbjt{
	display: table;
	margin-bottom: 0.5em;
}

.sType{
	margin-left: 9.5em;
}

.sName > div:nth-child(1),
.sMail > div:nth-child(1),
.sType > div:nth-child(1),
.s_cName > div:nth-child(1),
.sSbjt > div:nth-child(1),
.sCnt >  div:nth-child(1){
	display: table-cell;
	background-color: #9cf;
	color: #369;
	padding: 0.25em 0.5em;
	width: 9em;
	text-align: justify;
	text-align-last:justify;
	border-radius: 0.25em;
}

.sName > div:nth-child(2),
.sMail > div:nth-child(2),
.sType > div:nth-child(2),
.s_cName > div:nth-child(2),
.sSbjt > div:nth-child(2),
.sCnt >  div:nth-child(2){
	padding: 0.25em 0.5em;
}

.button{
	text-align: center;
}

/*Contact form end*/

/*scroll start*/
.scroll-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 100;
  background-color: #ddd;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  line-height: 50px;
  text-align: center;
	transition: ease 0.5s;
}
.scroll-top:hover {
  cursor: pointer;
  opacity: 0.7;
}
/*scroll end*/

footer{
	height: 100px;
	width: 100%;
	position: absolute;
	bottom: 0;	
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

@media (min-width: 600px){
	header label,
	header .menu{
		display: none;
	}
	
	.global-nav{
	display: block;
	width: 100%;
	}

	.global-nav ul{
		display: flex;
	}

	.global-nav li{
		width: 4em;
		line-height: 75px;
		padding:0 1em;
		vertical-align: middle;

	}
	
	.global-nav li a{
		color: #0f0f0f;
		-webkit-tap-highlight-color:rgba(0,0,0,0);
    	cursor: pointer;
	}
	
	.global-nav li a:hover,
	.global-nav li a:focus{
		color: #666;
	}
	
	.workRow{
		margin-bottom: 100px;
	}
	
	.square{
		padding: 0 20%;
	}
}
@media (min-width: 1025px){
	.wrapper{
		width: 75vw;
		margin: 0 auto;
	}
	
	.workRow,.origin{
		width: 100%;
		display: flex;
		box-sizing: border-box;
		align-items: center;
		flex-wrap:wrap;
	}

	.work{
		width: 60%;
	}
	
	.square{
		padding: 0 10%;
	}
	
	.workRow:nth-of-type(2n) .workMemo{
		order: 1;
	}

	.workRow:nth-of-type(2n) .work{
		order: 2;
	}
	.work > img{
		width: 100%;
	}

	.workMemo{
		width: 40%;
	}

	.origin{
		justify-content:center;
	}

	.originImg{
		width: 50%;
	}

	.originImg > img{
		width: 100%;
	}
}