html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    background: url(img/bg.gif) repeat;
    font-size: 17px;
    line-height: 30px;
}

p {
    margin: 0 0 40px 0;
}

.all {
    width: 1100px;
    margin: 0 auto;
    background: #fff;
}
.content {
    width: 1020px;
    margin: 0 auto;
    padding: 0 0 20px 0;
}

a {
    color: #555;
    text-decoration: underline;
}
a:hover {
    color: #999;
    text-decoration: none;
}

/* ===================================== */

h1 {
    display: block;
    text-indent: -9999px;
    background: url(img/header.png) no-repeat 50% 0;
    height: 390px;
    margin: 0;
}

h2 {
    display: block;
    text-indent: -9999px;
    background: url(img/sttl.png) no-repeat 0 0;
    width: 460px;
    height: 51px;
    margin: 60px 0 0 0;
    padding: 0;
}
    #menu h2 {
        background: url(img/sttl.png) no-repeat 0 -51px;
        margin-bottom: 50px;
    }
    #rules h2 {
        background: url(img/sttl.png) no-repeat 0 -102px;
    }
    #howto h2 {
        background: url(img/sttl.png) no-repeat 0 -152px;
        margin: 60px 0 30px 0;
    }
    #profile h2 {
        background: url(img/sttl.png) no-repeat 0 -203px;
        margin: 60px 0 40px 0;
    }
    #pay h2 {
        background: url(img/sttl.png) no-repeat 0 -255px;
        margin: 60px 0 40px 0;
    }

h3 {
    margin: 0 0 15px 0;
}

/* ===================================== */

#board {
    position: relative;
    padding: 0 0 20px 0;
}
#concept, #menu, #rules, #howto, #profile, #pay {
    position: relative;
    padding: 0 0 20px 0;
    width: 900px;
    margin: 0 auto;
    background: url(img/line.gif) no-repeat 50% 100%;
}
#profile {
    background: transparent;
}
.photo {
    position: absolute;
    top: 0;
    left: 0;
}
    .p01 {
        top: 135px;
        left: 620px;
    }
    .book {
        top: 40px;
        left: -115px;
    }
    .right {
        padding: 0 0 40px 480px;
    }
    .p02 {
        top: 640px;
        left: 610px;
    }
    .p03 {
        top: 980px;
        left: -70px;
    }
    .p04 {
        top: 20px;
        left: 680px;
    }
    .p05 {
        top: -135px;
        left: 730px;
    }

/* ===================================== */

#footer {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin: 50px 0 0 0;
}

/* ===================================== */

#profile dl {
}
#profile dt {
    width: 240px;
    height: 207px;
}
#profile dd {
    width: 660px;
    margin: -207px 0 0 0;
    padding: 0 0 0 240px;
    min-height: 210px;
}
.message {
    margin: 0 0 50px 0;
    background: #f8f8f8;
    padding: 30px 30px 15px 30px;
    font-size: 13px;
    line-height: 20px;
}
#profile span {
    font-weight: bold;
}
#profile p {
    margin: 0 0 15px 0;
}

/* ===================================== */

#howto table {
    margin: 0 0 50px 0;
}
#howto td {
    border: 1px solid #eee;
    line-height: 25px;
    padding: 15px;
}
#howto td.t {
    background: #f8f8f8;
    width: 240px;
}

/* ===================================== */

#rules {
    padding: 0 0 30px 0;
}
#rules ol {
        counter-reset: li; /* Initiate a counter */
        padding: 0; /* Remove the default left padding */
        list-style: none; /* Disable the normal item numbering */
}
#rules ol li {
    position: relative; /* Create a positioning context */
    margin: 0 0 30px 1em; /* Give each list item a left margin to make room for the numbers */
    padding: 0 0 0 1em;
}
#rules ol li:before {
    content: counter(li); /* Use the counter as content */
    counter-increment: li; /* Increment the counter by 1 */
    /* Position and style the number */
    position: absolute;
    top: 0px;
    left: -1.4em;
    width: 1.4em;
    font-size: 22px;
    font-weight: bold;
    font-family: "Helvetica Neue", Arial, sans-serif;
    text-align: center;
}
/*#rules ol li.r {
    font-weight: normal;
    font-size: 18px;
    padding: 0 0 30px 40px;
}*/

/* ===================================== */

#menu ol {
    list-style-type: none;
    margin: 0 0 0 -20px;
    padding: 0 0 30px 0;
    width: 940px;
    overflow: visible;
}
    #menu ol li {
        height: 260px;
        background: url(img/merit.png) no-repeat;
    }
    #menu ol li.n02 {
        background-position: 0 -260px;
        margin: 0px;
    }
    #menu ol li.n03 {
        background-position: 0 -520px;
        margin: -65px 0 0 0;
        padding: 60px 0 0 0;
    }
    #menu ol li.n04 {
        background-position: 0 -800px;
        margin: -60px 0 0 0;
    }

    #menu ol li dl {
        padding: 0 0 0 260px;
    }
    #menu ol li.n02 dl {
        padding: 0 0 0 190px;
    }
    #menu ol li.n03 dl {
        padding: 0 0 0 240px;
    }
    #menu ol li.n04 dl {
        padding: 0 0 0 185px;
    }

    #menu ol li dl dt {
        display: block;
        width: 355px;
        height: 110px;
        background: url(img/mttl.png) no-repeat 0 0;
        text-indent: -9999px;
    }
    #menu ol li.n02 dl dt {
        background-position: 0 -110px;
    }
    #menu ol li.n03 dl dt {
        background-position: 0 -220px;
    }
    #menu ol li.n04 dl dt {
        background-position: 0 -330px;
    }

    #menu ol li dl dd {
        padding: 0 0 0 3px;
    }
        #menu ol li.n02 dl dd {
            padding: 0 0 0 20px;
        }
        #menu ol li.n03 dl dd {
            padding: 0 0 0 20px;
        }
        #menu ol li.n04 dl dd {
            padding: 0 0 0 20px;
        }

/* ===================================== */

#gnav ul {
    margin: 0;
    padding: 0;
}
#gnav ul li {
    list-style-type: none;
    float: left;
}
#gnav ul li a {
    display: block;
    text-indent: -9999px;
    background: url(img/gnav.png) no-repeat;
    width: 204px;
    height: 115px;
}
    #gnav ul li.n02 a {
        background-position: -204px 0;
    }
    #gnav ul li.n03 a {
        background-position: -408px 0;
    }
    #gnav ul li.n04 a {
        background-position: -612px 0;
    }
    #gnav ul li.n05 a {
        background-position: -816px 0;
    }

a:focus {
    outline:none;
}
 
.clearfix:after {
    content: "."; 
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}
 
.clearfix {
    min-height: 1px;
}
 
* html .clearfix {
    height: 1px;
    /*¥*//*/
    height: auto;
    overflow: hidden;
    /**/
}
 
.both{
    clear:both;
}
 
.inline_block {  
    display: inline-block;  
    *display: inline;  
    *zoom: 1;  
}

img {
/*    max-width:100%;*/
}
 
a,a:hover {
    -webkit-transition: 0.7s;
    -moz-transition: 0.7s;
    -o-transition: 0.7s;
    transition: 0.7s;
}
 
a img:hover,
#gnav ul li a:hover {
    filter: alpha(opacity=30);
    -moz-opacity:0.30;
    opacity:0.30;
}

textarea {
    height: auto;
}
input, textarea, .uneditable-input {
    width: 500px;
}

textarea, input[type="text"] {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #000;
    display: inline-block;
    padding: 4px 6px;
    vertical-align: middle;
}

.btn-primary {
    color: #000;
/*    text-shadow: 0 -1px 0 rgba(0,0,0,0.25);*/
    background: url(img/bg.gif);
    width: 240px;
    height: 60px;
    border: 0;
    font-weight: bold;
    margin: 0 auto;
}

.label {
    border-radius: 3px;
}
.label, .badge {
    color: #fff;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    line-height: 14px;
    padding: 2px 4px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    vertical-align: baseline;
    white-space: nowrap;
}
.label-important, .badge-important {
    background-color: #b94a48;
    margin: 0 0 0 10px;
}

span.at {
    color: #c00;
}
.step {
    margin: 30px 0 50px 0;
    padding: 30px;
    border: 2px solid #ccc;
    background: #f8f8f8;
}
#menu .step, #pay .step {
    text-align: center;
}
#pay {
    background: none;
}
#pay form {
    text-align: center;
    padding: 45px 0;
}
#howto h4 {
    margin: 20px 0 0 0;
    padding: 0;
}
.step p {
    margin: 0;
}
.step h4 {
    margin: 0;
}
.tc {
    text-align: center;
}