﻿/*------------------------------------------------------------旧CSSより*/

.grid3{
	width:20%
}

#portfolio-selectors{
	padding-top:70px;
	padding-bottom:10px;
	text-align: center;
}
#portfolio-selectors a{
	color: #0092d5;
	display:inline-block;
	background-color:#FFF;
	padding:5px 10px;
	margin-right:10px;
	font-size:0.9em;
	margin-bottom:3px;
	border: 1px solid #0092d5;
}
#portfolio-selectors a:hover{
	background-color:#e4f1f9;
}
#portfolio-selectors a.selected{
	cursor:default;
	background-color:#e4f1f9;
}

@media only screen and (max-width : 767px){
}

#portfolio-list ul{
	list-style:none;
	margin:0;
	padding:0;
	min-height:300px;
}
#portfolio-list {
	letter-spacing: -5px;
	text-align: left;
	position: relative;
}
#portfolio-list li img{
	transition: all 0.3s ease;
}
#portfolio-list li img:hover{
	transform:scale(1.0);
}

.portfolio-item{
	text-align:center;
	position:relative;
	opacity:0.8;
	padding: 0px;
	width: 200px !important;
	display: inline-block;
	float: none !important;
	letter-spacing: 0px;
	text-align: left;
}
.portfolio-item .post-thumbnail{
	position: relative;
	height:100px;
	border:1px solid #CCC;
	margin:10px;
	transition: all 0.3s ease;
	cursor: pointer;
}
.portfolio-item .post-thumbnail:hover{
	transform:scale(1.15);
}
.portfolio-item:hover{
	opacity:1;
}
.portfolio-item img{
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	max-width:90%;
	max-height:70%;
}

.portfolio-item-contents{
	padding:0px 0 20px 0;
}
.portfolio-item-contents p{
	text-align:left;
	margin:2em auto;
}
.portfolio-item-contents iframe{
	min-height:200px;
}

#portfolio-list.about{
	text-align: left;
	margin: 0 0 20px;
	line-height: 0
}
.about .portfolio-item {
    width: calc(20% - 6px) !important;
    min-width: 80px;
    margin: 3px;
    opacity: 1;
    background-color: #FFF;
}
.about .portfolio-item .post-thumbnail {
    cursor: default;
    margin: 0px;
    height: 92px;
    border: none;
}
.about .portfolio-item .post-thumbnail:hover{
	transform:none;
}
#portfolio-list.about li img{
	transition: none;
	max-width:90%;
	max-height:60%;

}
#portfolio-list.about li img:hover{
	transform:none;
}

/*------------------------------------foundersvoice*/

.slidedown{
  position: relative;
  overflow: hidden;
  pointer-event:cursor;
  transition:max-height ease 0.5s;
  text-align: left;
  padding: 0 0 20px;
}
.slidedown.close{
  max-height: 150px;
}
.slidedown.open{
  max-height: 1000px;
}
.slidedown span.control{
  position: absolute;
  width: 100%;
  height: 100px;
  background: rgb(255,255,255);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 65%);
  bottom: 0px;
  left: 0px;
  z-index: 100;
}
.slidedown span.control:before{
  content: "Read more";
  position: absolute;
  bottom: 0px;
  left: 0px;
  text-align: center;
  z-index: 101;
  font-size: 14px;
  color:#0092d5;
  cursor: pointer;
  width: 100%;
}

.slidedown.open span.control{
  background: transparent;
}
.slidedown.open span.control:before{
  content: "Close";
}
.foundersvoice{
  display:flex;
  flex-wrap:wrap;
  margin: 0 -15px 0 -15px;
}
.foundersvoice > div{
  margin:0 15px 40px;
  flex-basis:313px;
  max-width: 100%;
}
.foundersvoice h3{
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}
.foundersvoice h3:first-line{
  font-size: 21px;
  line-height: 1.4;
}
.foundersvoice .img{
  overflow:hidden;
  margin-bottom:20px;
  border:1px solid #EEE;
  position: relative;
}
.foundersvoice .img:before{
  content: "";
  padding-top: 75%;
  display: block;
}
.foundersvoice .img img{
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.foundersvoice p.icon{
  text-align:center;
  font-size:14px;
  color: #CCC;
}
.foundersvoice p.icon i{
  font-size: 18px;
}
#overlay-portfolio-box iframe{
  max-width: 100%;
}
@media(max-width: 660px){
	.foundersvoice{
	  justify-content:center;
	}
}


/* ==========================================================================
   PORTFOLIO OVERLAY
   ========================================================================== */

#overlay-portfolio{
	display:none;
	width:100%;
	height:100%;
	position:absolute;
	top:0;
	left:0;
	z-index:100000;
}
#overlay-portfolio.show{
	display:block !important;
}

#overlay-portfolio-background{
	width:100%;
	height:1;
	position:absolute;
	top:0;
	left:0;
	background:rgba(0,0,0,0.4);
	opacity:0;
	z-index:100001;
	transition: all 1s;
  visibility:hidden;
}

#overlay-portfolio.show #overlay-portfolio-background{
	opacity:1;
	height:100%;
  visibility:visible;
	transition: all 1s ease-out;
}

#overlay-portfolio-box{
	position:relative;
	z-index:100002;
	width:80%;
	max-width:715px;
	padding:35px 5% 20px 5%;
	background:#FFF;
	margin:40px auto 0 ;
	border-top:7px solid #3596c9;
}

#overlay-portfolio-box h2{
	text-align:center;
}


#overlay-portfolio-box a.close{
	position:absolute;
	top:20px;
	right:20px;
	width:24px;
	height:24px;
	background-image:url(../image/overlay-email-form-box-close.png);
	background-position:0 0;
	background-size:24px 24px;
	background-repeat:no-repeat;
	text-indent:-9999px;
}


@media only screen and (max-width : 700px) {
	#overlay-portfolio-box{
		zoom: 80%;
	}
	.portfolio-item{
		width: 25% !important;
	}
	.about .portfolio-item{
		width: calc(25% - 6px) !important;
		min-width: auto;
	}
	.about .portfolio-item:nth-child(even),
	.about .portfolio-item:nth-child(41),
	.about .portfolio-item:nth-child(42),
	.about .portfolio-item:nth-child(43),
	.about .portfolio-item:nth-child(44),
	.about .portfolio-item:nth-child(45)
	{
		display: none;
	}
	.about .portfolio-item .post-thumbnail {
		height: 80px;
	}
}
@media only screen and (max-width : 525px) {
	#overlay-portfolio-box{
		zoom: 85%;
		width:95%;
		margin-top:10px;
		position: relative;
		top: 200px;
	}
	.portfolio-item{
		width: 33% !important;
	}
	.portfolio-item-contents iframe{
		max-width: 100%;
	}
}


