@charset "UTF-8";

.mainImg{
    background-image: url(../img/related/related-main.jpg);
}
#wrapper{
    position: relative;
    z-index: 3;
}

/*関連コンテンツ*/
#linkbutton{
    width: 980px;
    margin: 40px auto;
    overflow: hidden;
}

.row{
    margin-bottom: 20px;
    overflow: hidden;
}

.relatebox{
	float:left;
	margin-left:20px;
	position:relative;
	overflow:hidden;
}

.relatebox:first-child{
	margin-left:0;
}

.relatebox p{
	position:absolute;
	bottom:0;
	z-index:20;
	width:461px;
	height:38px;
	padding:10px;
	color:#fff;
	font-size:1.6rem;
	line-height:20px;
	filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#80000000,EndColorStr=#80000000);
	background: rgba(0,0,0,0.5);
}

.relatebox a:hover{
	opacity: .60;
	filter: alpha(opacity=60);
	-ms-filter: "alpha(opacity=60)";
}

*responsive*/
@media only screen and (min-width:980px) and (max-width:1024px) {
.mainImg {
	height: 50%;
}
}
@media only screen and (max-width:979px) {

.mainImg {
	height: 60%;
}
h1 {
	padding-top: 20%;
	line-height: 1;
}
h1 > span {
	line-height: 2;
}

#linkbutton{
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.row{
    margin-bottom: 0;
}

.relatebox{
        float: none;
        width: 100%;
    margin: 0 0px 40px 0;
}

.relatebox p{
width: 100%;
        font-size: 1.4rem;
}


}

@media only screen and (max-width:399px) {
    .mainImg{
        height: 50%;
    }
}

@media only screen and (max-width:767px) and (orientation: landscape) {
.mainImg {
	height: 70%;
}
h1 {
	padding-top: 0;
}

}
