/*------------------------------------------------------------
 メインメニューのタブの色
------------------------------------------------------------*/
ul#mainMenu #main_hp {
  background : #C8603C;
}

#subNavigation {
    box-sizing: border-box;
	margin: 25px auto 10px;
	width : calc(100% - 40px);
	background : #B57158;
	padding : 4px;
}

#subNavigation ul {
	height : 40px;
	border : dashed 1px #fff;
}
#subNavigation ul li {
    box-sizing: border-box;
	display : block;
	float : left;
    margin-top: 3px;
    margin-left: 1.4%;
    width: 15%;
    height: 34px;
}
#subNavigation ul li:nth-child(1) {
    width: 12%;
}
#subNavigation ul li:nth-child(2) {
    width: 20%;
}
#subNavigation ul li:nth-child(4) {
    width: 10%;
}
#subNavigation ul li:nth-child(5) {
    width: 18%;
}
#subNavigation ul li a {
    box-sizing: border-box;
	display : block;
	width : 100%;
	height : 100%;
	font-size : 16px;
	font-weight : bold;
	color : #fff;
	line-height : 35px;
	text-align : center;
	text-decoration : none;
}

#subNavigation ul li a:hover {
	background : #E5C3C3;
    border-radius: 5px;
    color: #7A4C3C;
}

.clear {
	clear : both;
}

h3 {
	clear : both;
	margin-top : 50px;
}

strong {
	font-weight : bold;
	color : #ED7700 ;
}

/* 制作事例 */
ul.portfolioList {
    margin: 0 auto;
    width: calc(100% - 40px);
}

ul.portfolioList li {
	float : left;
    width: calc(25% - 10px);
    height: 230px;
	text-align : center;
	margin : 5px;
	position : relative;
}

ul.portfolioList li a {
	border : 1px solid #B57158;
	display : block;
	width : 100%;
	height : 100%;
}

ul.portfolioList li a:hover {
	background : #F2DADA;
}


ul.portfolioList li .siteName {
	position : absolute;
	bottom : 15px;
	padding-top : 10px;
	width : 100%;
	font-size : 12px;
	color : #472727;
	line-height : 1.5em;
	border-top : dashed 1px #B57158;
}

ul.portfolioList li .thumb {
    margin: 12px auto 0;
	width : 140px;
    height : 128px;
	overflow : hidden;
	border : 1px solid #ccc;
}

/* 価格 */
table.priceTable {
    margin : 20px;
    width: calc(100% - 40px);
}

table.priceTable td {
    box-sizing: border-box;
	border : solid 1px #666;
	padding : 10px;
	color : #472727;
    vertical-align : middle;
}

table.priceTable th { 
	border : solid 1px #472727;
	color : #fff;
	font-weight : bold;
	padding : 5px;
	background : #B57158;
	text-align : center;
}
table.priceTable .columnPrice {
    width: 70px;
	text-align : right;
}
table.priceTable .columnName {
	width : 120px;
}
div#inquiryButton {
    clear: both;
    margin: 0;
    padding: 20px 0 0;
    width: 100%;
}
div#inquiryButton a {
    display: block;
    margin: 0 auto;
    width: 680px;
}
div#inquiryButton a img {
    width: 680px;
}
div#inquiryButton a:hover {
    opacity: 0.8;
}

/*------------------------------------------------------------
 ブレークポイント960px
------------------------------------------------------------*/
@media only screen and (max-width:960px) {
    ul.portfolioList li {
        width: calc(50% - 10px);
    }
    div#inquiryButton a, div#inquiryButton a img {
        width: 100%;
    }
}

/*------------------------------------------------------------
 ブレークポイント870px
------------------------------------------------------------*/
@media only screen and (max-width:870px) {
    #subNavigation {
        margin-top: -20px;
    }
    h3 {
        margin-top: 20px;
    }
}

/*------------------------------------------------------------
 ブレークポイント768px
------------------------------------------------------------*/
@media only screen and (max-width:768px) {
    #subNavigation {
        width: 100%;
    }
    #subNavigation ul li a {
        font-size: 14px;
    }
    table.priceTable {
        margin : 20px auto;
        width: calc(100% - 10px);
    }
}

/*------------------------------------------------------------
 ブレークポイント540px
------------------------------------------------------------*/
@media only screen and (max-width:540px) {
    #subNavigation ul {
        height: 80px;
    }
    #subNavigation ul li:nth-child(n) {
        margin-left: 1%;
        margin-bottom: 2px;
        width: 32%;
    }
}

/*------------------------------------------------------------
 ブレークポイント480px
------------------------------------------------------------*/
@media only screen and (max-width:480px) {
    table.priceTable {
        font-size: 0.8em;
    }
    ul.portfolioList li {
        float: none;
        margin-top: 15px;
        width: calc(100% - 10px);
    }
    
    table.priceTable .columnName {
        width : 98px;
    }
}