html {
    border-top: 20px solid #043554;
}

body {
    background: #004D82 url(images/_bg-blue.gif) repeat;
    color: #444;
    font: normal 12px/1.5 HelveticaNeue,Helvetica,Arial,sans-serif;
    margin: 0;
    padding: 0;
}


ol, p {
    margin: 0 0 1em;
    padding: 0;
}

a:link,
a:visited {
    color: #126499;
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
    color: #0464BB;
    text-decoration: underline;
}

.container {
    margin: 0 auto;
}

#page {
    background: #fff;
            -webkit-box-shadow: rgba(0, 0, 0, 0.296875) 0px 1px 2px;
            -moz-box-shadow:    rgba(0, 0, 0, 0.296875) 0px 1px 2px;
            box-shadow:         rgba(0, 0, 0, 0.296875) 0px 1px 2px;
            -webkit-border-radius: 0;
            -moz-border-radius:    0;
            -o-border-radius:      0;
            border-radius:         0;
}

#tuts {
    padding: 10px 10px 0;
}

ul.list {
    font-size: 16px;
    line-height: 20px;
    list-style-type: none;
    padding: 0px;
}

.list #tut_offline_apps a {
    background: url(resources/shared/img/offline.png) no-repeat 0px 0.3em;
}

.list #tut_phonegap a {
    background: url(resources/shared/img/phonegap.png) no-repeat 0px 0.3em;
}

.list a {
    display: block;
    font-weight: bold;
    padding: 0.5em 0px 0.5em 2.4em;
}

ol#grid {
    list-style: none;
    overflow: auto;
    padding: 47px 100px 0;
}

ol#grid li {
    float: left;
    position: relative;
}

ol#grid li a {
	background: transparent;
	-webkit-border-radius: 12px;
	-moz-border-radius:    12px;
	border-radius:         12px;
	-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.153);
	-moz-box-shadow:    0 0 10px rgba(0,0,0,0.153);
	box-shadow: 0 0 10px rgba(0,0,0,0.153);
	color: #0464BB;
	display: block;
	height: 60px;
	padding: 0;
	text-align: center;
	text-decoration: none;
	text-shadow: 0 1px 0 rgba(255,255,255,0.333);
	vertical-align: middle;
	width: 60px;
	margin-top: 0;
	margin-right: 121px;
	margin-bottom: 68px;
	margin-left: 0;
}

ol#grid li a img {
    border: none;
    -webkit-transition: opacity 0.23s ease-in-out;
    -moz-transition:    opacity 0.23s ease-in-out;
    transition:         opacity 0.23s ease-in-out;
}

ol#grid li a:hover,
ol#grid li a:focus,
ol#grid li a:active {
    background: #000;
}

ol#grid li a:hover img,
ol#grid li a:focus img,
ol#grid li a:active img {
    opacity: 0.65;
}

    ol#grid li a,
    ol#grid li:nth-child(5n) a {
        margin: 0 104px 87px 0;
    }
    ol#grid li:nth-child(2n) a {
        margin-right: 105px;
    }
    ol#grid li:nth-child(4n) a {
        margin-right: 0;
    }

ol#grid li a span {
    color: #314E64;
    font-weight: bold;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    white-space: nowrap;
}

#footer {
    color: #E2E5FF;
    font-weight: bold;
}

#footer p {
    padding: 0 13px;
}

#footer em {
    font-style: normal;
    padding-left: 20px;
}

#footer a {
    color: #fff;
    text-decoration: none;
}

   /* iPhone landscape */
    @media only screen and (max-device-width: 800px) and (orientation: landscape) {
        
        html {
            border-top: 2px solid #043554;
        }

        .container {
            width: 480px;
        }

        #page {
            -webkit-box-shadow: rgba(0, 0, 0, 0.296875) 0px 1px 2px;
            -moz-box-shadow:    rgba(0, 0, 0, 0.296875) 0px 1px 2px;
            box-shadow:         rgba(0, 0, 0, 0.296875) 0px 1px 2px;
            -webkit-border-radius: 0;
            -moz-border-radius:    0;
            -o-border-radius:      0;
            border-radius:         0;
        }
                
        #tuts {
            padding: 17px 36px 0;
        }

        ol#grid {
            padding: 17px 36px;
        }
        ol#grid li a,
        ol#grid li:nth-child(2n) a,
        ol#grid li:nth-child(5n) a {
            -webkit-box-shadow: none;
            margin: 0 20px 31px 0;
            text-shadow: none;
        }
        ol#grid li:nth-child(4n) a {
            margin-right: 0;
        }

        #footer {
            font-size: 10px;
        }
        
    }
    
    /* iPhone portrait */
    @media only screen and (max-device-width: 800px) and (orientation: portrait) {
        
        html {
            border-top: 2px solid #043554;
        }

        .container {
            /* width: 360px; */
            /* 幅の広いスマホに対応する為Widthを変更*/
            width: 375px;
        }

        #page {
            -webkit-box-shadow: rgba(0, 0, 0, 0.296875) 0px 1px 2px;
            -moz-box-shadow:    rgba(0, 0, 0, 0.296875) 0px 1px 2px;
            box-shadow:         rgba(0, 0, 0, 0.296875) 0px 1px 2px;
            -webkit-border-radius: 0;
            -moz-border-radius:    0;
            -o-border-radius:      0;
            border-radius:         0;
        }
        
        #tuts {
            padding: 10px 10px 0;
        }

        h1 {
            font-size: 17px;
        }

        ol#grid {
            //padding: 10px;
            padding: 10px 10px 10px 40px;
        }
        ol#grid li a,
        ol#grid li a img {
            height: 57px;
            width:  57px;
        }
        ol#grid li a,
        ol#grid li:nth-child(5n) a {
            -webkit-box-shadow: none;
            margin: 0 19px 31px 0;
            text-shadow: none;
        }
        ol#grid li a span {
            display: block;
            font-size: 11px;
            line-height: 11px;
        }
        ol#grid li:nth-child(2n) a {
            margin-right: 15px;
        }
        ol#grid li:nth-child(4n) a {
            margin-right: 0;
        }

        #footer em {
            padding-left: 10px;
        }

    }