/* clearfix */
.cf {
	zoom: 1;
}

.cf:before, .cf:after {
	content: "";
	display: table;
}

.cf:after {
	clear: both;
}

 .inner,.wrap_inner {
    max-width: 980px;
    margin: 0 auto;
}

.inner:after {
    content: "";
    clear: both;
    display: block;
}

a {
    text-decoration: none;
    color: #000;
}

a:hover {
    cursor: pointer;
}


/* header */

#wide {
    margin-top: 60px;
}
#top-head {
    top: -100px;
    position: absolute;
    width: 100%;
    margin: 100px auto 0;
    padding: 10px 0;
    line-height: 1;
    z-index: 999;
    background: url(img/head_bg.jpg) repeat-x;
    height: 40px;
}

#top-head h1 img {
	max-width: 250px;
	width: 80%;
}

#top-head a,
#top-head {
    color: #000;
    text-decoration: none;
}
#top-head .inner {
    position: relative;
}
#top-head .logo {
    float: left;
}
#global-nav ul {
    list-style: none;
    position: absolute;
    right: 0;
    bottom: 5px;
    font-size: 16px;
   
}
#global-nav ul li {
    float: left;
}
#global-nav ul li a {
    padding: 0 20px 0 10px;
}
 
/* Fixed */
#top-head.fixed {
    margin-top: 0;
    top: 0;
    position: fixed;
    padding-top: 10px;
    height: 45px;
    background: url(img/head_bg.jpg) repeat-x;
    transition: top 0.65s ease-in;
    -webkit-transition: top 0.65s ease-in;
    -moz-transition: top 0.65s ease-in;
}
#top-head.fixed .logo {
    font-size: 24px;
    color: #333;
}
#top-head.fixed #global-nav ul li a {
    color: #000;
    padding: 0 20px 0 10px;
}
 
/* Toggle Button */
#nav-toggle {
    display: none;
    position: absolute;
    right: 22px;
    top: 20px;
    width: 34px;
    height: 36px;
    cursor: pointer;
    z-index: 101;
}
#nav-toggle div {
    position: relative;
}
#nav-toggle span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: #666;
    left: 0;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
}
#nav-toggle span:nth-child(1) {
    top: 0;
}
#nav-toggle span:nth-child(2) {
    top: 11px;
}
#nav-toggle span:nth-child(3) {
    top: 22px;
}


/*contents*/

#Chara,#case,#part,#qa,#contact {
    padding-top: 100px;
}

#contents p {
    line-height: 1.5em;
}
#contents h2 {
    text-align: center;
    padding-bottom: 20px;
    font-size: 26px;
}

.title_line {
    background: #000;
    height: 36px;
    margin-bottom: 10px;
}

.title_line h3 {
    color: #fff;
    font-size: 18px;
    text-align: center;
    padding: 10px 0;
}

.wrap_inner {
    padding: 10px 20px 30px;
}

#case,#qa,#foot {
    background: #eee;
    padding-bottom: 20px;
    margin-top: 20px;
}



h3.circle {
    border: 2px solid #5ebce7;
    width: 45px;
    text-align: center;
    padding: 10px 5px 5px;
     border-radius: 50px;        /* CSS3草案 */
    -webkit-border-radius: 50px;    /* Safari,Google Chrome用 */
    -moz-border-radius: 50px;
    float: left;
    margin-right: 10px;
}
.case_box p {
    font-size: 16px;
    padding-top: 5px;
}
.case_box img {
    width: 100%;
    max-width: 420px;
}

.case_box ul {
    margin: 10px;
}
.case_box ul li {
    width: 49%;
    float: left;
}

.part_box {
    float: left;
    width: 30%;
    margin-bottom: 10px;
}

.part_box:nth-child(2),.part_box:nth-child(5) {
    margin: 0 5%;
}

.part_box p {
    text-align: center;
    font-weight: bold;
    font-size: 20px;
}

#qa dl {
    border-bottom: 1px solid #aaa;
    margin-bottom: 20px;
}
#qa dl:last-child {
    margin-bottom: 0;
}

#qa dl dt {
    background: url(img/q.png) no-repeat;
    padding: 0 0 10px 40px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2em;
}
#qa dl dd {
    background: url(img/a.png) no-repeat;
    padding: 0 0 10px 40px;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4em;
}

#contact dl {
    margin: 30px 0 20px;
}
#contact dt {
    float: left;
    width: 30%;
    background: #eee;
    border-bottom: 1px solid #FFF;
    padding: 10px 0 7px 10px; 
}

#contact dt.form_last {
    padding-bottom: 43px;
}

#contact dd {
    margin-left: 30%;
    padding: 5px 20px;
}

#contact dd input {
    width: 98%;
    height: 30px;
    font-size: 16px;
}

#contact dd textarea {
    width: 98%;
    height: 50px;
}
#contact span {
    font-size: 13px;
    background: #ff6c00;
    color: #fff;
    padding: 3px;
    margin-left: 10px;
}

#contact dl dd.error input , 
#contact dl dd.error textarea , 
#contact dl dd.error label {
    background:#FFCCCC;
}
* html #contact dl dd.error label {
    background:none;
}
*+html #contact dl dd.error label{
    background:none;
}
#contact dl dd p.error{
    margin:0;
    color:red;
    font-weight:bold;
    margin-bottom:1em;
}


/* footer  */


footer nav ul {
    padding: 20px 0 0 50px;
}
footer nav ul li {
    float: left;
    width: 20%;
    margin-bottom: 10px;
}

#foot p {
    text-align: center;
    font-size: 90%;
}

#foot p.adress {
    text-align: center;
    font-size: 100%;
}

#submit {
        text-align: center;
}

#submit button {
    background: #5ebce7;
    padding: 15px 70px;
    font-size: 20px;
    color: #FFF;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

#thanks {
    margin: 130px 0 50px;
    text-align: center;
}
#thanks p {
    margin-bottom: 50px;
}

#thanks a {
    padding: 15px 50px;
    background: #5ebce7;
    color: #fff;
}







@media screen and (max-width: 768px)  {
    #wide {
    margin-top: 60px;
    }

     #top-head,
    .inner {
        width: 100%;
        padding: 0;
    }
    #top-head {
        top: 0;
        position: fixed;
        margin-top: 0;
    }
    /* Fixed reset */
    #top-head.fixed {
        padding-top: 0;
        background: transparent;
    }
    #mobile-head {
        background: #fff;
        width: 100%;
        height: 60px;
        z-index: 999;
        position: relative;
        top: 0px;
        background: url(img/head_bg.jpg) no-repeat;
    }
    #top-head.fixed .logo,
    #top-head .logo {
        position: absolute;
        left: 13px;
        top: 13px;
        color: #333;
        font-size: 26px;
    }
    #global-nav {
        position: absolute;
        /* 開いてないときは画面外に配置 */
        top: -510px;
        background: rgba(70,70,70,0.9);

        width: 100%;
        text-align: center;
        padding: 10px 0;
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
    }
    #global-nav ul {
        list-style: none;
        position: static;
        right: 0;
        bottom: 0;
        font-size: 14px;
    }
    #global-nav ul li {
        float: none;
        position: static;
    }
    #top-head #global-nav ul li a,
    #top-head.fixed #global-nav ul li a {
        width: 100%;
        display: block;
        color: #fff;
        padding: 18px 0;
    }
    #nav-toggle {
        display: block;
    }
    /* #nav-toggle 切り替えアニメーション */
    .open #nav-toggle span:nth-child(1) {
        top: 11px;
        -webkit-transform: rotate(315deg);
        -moz-transform: rotate(315deg);
        transform: rotate(315deg);
    }
    .open #nav-toggle span:nth-child(2) {
        width: 0;
        left: 50%;
    }
    .open #nav-toggle span:nth-child(3) {
        top: 11px;
        -webkit-transform: rotate(-315deg);
        -moz-transform: rotate(-315deg);
        transform: rotate(-315deg);
    }
    /* #global-nav スライドアニメーション */
    .open #global-nav {
        /* #global-nav top + #mobile-head height */
        -moz-transform: translateY(556px);
        -webkit-transform: translateY(556px);
        transform: translateY(570px);
    }
    
    .case_box ul {
        margin: 20px 0;
    }

   
    .case_box img {
        width: 100%;
        max-width: 768px;
    }

    .case_box ul li {
    width: 100%;
}

    .part_box {
        width: 100%;
        margin: 10px 0 20px;
    }

    .part_box:nth-child(2),.part_box:nth-child(5) {
    margin: 0;
    }

    .part_box img {
         width: 100%;
    }
    .part_box p {
        text-align: center;
        margin-top: 10px;
        font-weight: bold;
    }


    #contact dt {
        width: 100%;
        margin-bottom: 8px; 
        background: #fff;
    }

    #contact dt.form_last {
        padding: 10px 0 10px 10px
    }


    #contact dd {
        display: inline;
        margin-left: 0;
        padding: 0;
    }

    #contact dd input {
        width: 90%;
        height: 20px;
        margin-bottom: 10px;
    }

    #contact dd textarea {
        width: 90%;
        height: 50px;
    }

    #contact dl  {
        margin: 10px 0 10px;
    }

    footer nav ul {
        padding-top: 20px;
    }

    footer nav ul li {
        float: left;
        width: 50%;
        margin-bottom: 10px;
    }

    #foot p {
        text-align: center;
        font-size: 70%;
    }

    #foot p.adress {
    text-align: center;
    font-size: 100%;
    }

    .wideslider img {
    width: 100%;

    margin-top: 0px;
}

}



/*//////////////////　ページスクロール　*/
#page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 77%;
}
#page-top a {
    background: #5ebce7;
    text-decoration: none;
    color: #fff;
    width: 58px;
    padding: 15px 0;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    display: block;
    border-radius: 40px;
}
#page-top a:hover {
    text-decoration: none;
    background: #79c5e7;
}