html {
    width:100%;
    height:100%;
}
body {
    font-family:'Lucida Grande', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: #000;
    font-size: 16px;
    height:100%;
    background-color: #eee;
}
img {
    max-width: 100%;
    height: auto;
    width: auto;
    vertical-align: middle;
}
a {
    color: #000;
	text-decoration: none;
}
a:hover {
    color: #38409F;
	text-decoration: underline;
}
a:hover img {
	opacity: 0.9;
	filter: alpha(opacity=90);
}
.mincho {
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    font-weight:500;
}
.marugo {
    font-family:"ヒラギノ丸ゴ Pro W4","ヒラギノ丸ゴ Pro","Hiragino Maru Gothic Pro","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","HG丸ｺﾞｼｯｸM-PRO","HGMaruGothicMPRO";
    font-weight:500;
}

#container {
	width: 100%;
    max-width: 980px;
	min-height:100%;
	position: relative;
    background-color: #fff;
    margin: 0 auto;
}

#container header {
    width: 100%;
    position: relative;
    height: auto;
    margin-bottom: 17px;
}
#container header h1 {
    width: 9.2%;
    padding-top: 12px;
    padding-left: 21px;
    float: left;
}
#container header nav {
    float: right;
    margin-right: 15px;
}
#container header nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    margin-bottom: 15px;
}
#container header nav ul li {
    border-right: 1px solid #000;
    padding: 20px 20px 10px;
}
#container header nav .tel {
    font-size: 2em;
    color: #3E4692;
    font-weight: bold;
    font-style: italic;
    text-align: right;
    letter-spacing: 0.05em;
    margin-bottom: 7px;
}
#container header nav .addr {
    font-size: 0.8em;
    font-style: italic;
    text-align: right;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

#container .mainphoto {
    margin-bottom: 75px;
}

#container .top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.top .mbl {
    width: 50.4%;
    margin-left: 3%;
}
.top .mbl h2 {
    margin-top: 50px;
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 165px;
}
.top .mbr {
    width: 39%;
    margin-left: 3.5%;
}
.top .mbr p {
    line-height: 1.6;
    margin-bottom: 40px;
    letter-spacing: -0.05em;
}
.top .mbr .cn {
    font-size: 1.5em;
    line-height: 1.2;
    margin-bottom: 5px;
    display: inline-block;
}
.top .mbr .co {
    font-size: 1em;
    line-height: 1.2;
}
.top .mbr .cp {
    font-size: 1.9em;
    line-height: 1.2;
}

#container h3 {
    margin: 0;
}

.works {
    position: relative;
    margin-bottom: 45px;
}
.works h3 {
    z-index: 10;
    position: relative;
}
.wimgbox {
    position: relative;
    z-index: 5;
}
.wimgbox.first {
    margin-top: -20px;
}
.wimgwrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}
.wimgbox .p16 {
    font-size: 1.5em;
    line-height: 2;
    color: #fff;
    font-style: italic;
    position: absolute;
    top:5%;
    right: 6%;
    text-align: right;
}
.companyinfo {
    width: 86.73%;
    margin: 0 auto;
    background-color: #DEE6EA;
    padding: 20px 30px;
    box-shadow:2px 2px 6px -3px #666;
    -moz-box-shadow:2px 2px 6px -3px #666;
    -webkit-box-shadow:2px 2px 6px -3px #666;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 2px;
    margin-bottom: 50px;
}
.companyinfo h4 {
    margin: 0 0 20px -45px;
    background: -o-linear-gradient(left, #7798B2 31%, #DEE6EA 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(31%, #7798B2), to(#DEE6EA));
    background: linear-gradient(to right, #7798B2 31%, #DEE6EA 100%);
    padding: 7px 20px 7px 40px;
    color: #fff;
    font-size: 1em;
}
.companyinfo dl {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.companyinfo dl dt {
    width: 25%;
    margin: 0;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: bold;
}
.companyinfo dl dd {
    margin: 0;
    width: 75%;
    line-height: 1.6;
    margin-bottom: 20px;
}
.companyinfo dl dd span {
    width: 10em;
    display: inline-block;
}
footer {
    background-color: #38409F;
    text-align: center;
    padding: 15px;
}
footer address {
    color: #fff;
    font-style: normal;
    font-size: 0.9em;
}
.totop {
    position: fixed;
    bottom: 5%;
    right: 7%;
    z-index: 100;
}

.inviewfadeIn {
    opacity: 0;
    -webkit-transition:.8s;
    -o-transition: .8s;
    transition: .8s;
}

.fadeIn {
    opacity: 1.0;
}

.inviewfadeInUp {
    opacity: 0;
    -ms-transform: translate(0, 60px);
    transform: translate(0, 60px);
    -webkit-transform: translate(0, 60px);
    -webkit-transition:.8s;
    -o-transition: .8s;
    transition: .8s;
}

.fadeInUp {
    opacity: 1.0;
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
    -webkit-transform: translate(0, 0);
}
.w33 img:nth-child(1) {
    width: 22.85%;
}
.w33 img:nth-child(2) {
    width: 56.73%;
}
.w33 img:nth-child(3) {
    width: 20.4%;
}


@media (max-width:768px) {
    .works {
        margin-bottom: 100px;
    }
    .totop {
        right: 3%;
    }
}
@media (max-width:480px) {
    #container header h1 {
        width: 15%;
        padding-top: 12px;
        padding-left: 10px;
    }
    #container header nav {
        margin-right: 0px;
    }
    #container header nav ul {
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
        margin-bottom: 5px;
    }
    #container header nav ul li:first-child {
        display: none;
    }
    #container header nav ul li {
        border-right: 1px solid #000;
        padding: 10px;
        font-size: 0.7em;
    }
    #container header nav .tel {
        font-size: 1em;
        margin-right: 5px;
    }
    #container header nav .addr {
        font-size: 0.6em;
        margin-right: 5px;
    }
    #container .mainphoto {
        margin-bottom: 25px;
    }
    .top .mbl {
        width: 80%;
        margin-left: 0%;
        margin: 0 auto 20px;
    }
    .top .mbl h2 {
        margin-top: 0px;
        text-align: center;
        font-size: 2.5em;
        font-weight: bold;
        margin-bottom: 15px;
    }
    .top .mbr {
        width: 90%;
        margin-left: 0%;
        margin: 0 auto;
    }
    .top .mbr p {
        font-size: 1.1em;
        line-height: 1.6;
        margin-bottom: 20px;
        letter-spacing: -0.05em;
    }
    
    #container .top {
        margin-bottom: 20px;
    }
    .wimgbox .p16 {
        font-size: 0.7em;
        text-shadow: 1px 1px 3px #000;
    }
    .companyinfo dl dt {
        width: 100%;
        margin-bottom: 3px;
    }
    .companyinfo dl dd {
        width: 100%;
        margin-bottom: 20px;
    }
    .companyinfo dl dd span {
        width: auto;
        display: block;
    }
    .companyinfo {
        padding: 20px 20px;
    }

}