@charset 'utf-8';

html, body {
    height: 100%;
}

body {
    background-color: #DDEDED;
    font-family: Sans-Serif;
    margin: 0;
    padding: 0;
    display: table;
    width: 100%;
    height: 100%;
}

img {
    border: none;
}

.img-block {
    display: block;
    margin: 1em 0;
    width: 100%;
}

h1 {
    font-family: Raleway;
    font-weight: 300;
    font-size: 3em;
    margin: 0;
    padding: .5em;
}

h2 {
    font-family: Raleway;
    font-weight: 300;
    font-size: 2em;
    margin: 0;
    padding: .5em 0;
}

#nav, #footer, #header, #main {
    display: table-row;
}

#main {
    height: 100%;
}

#header, #main {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 auto;
}

#header h1 {
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.1);
}

#nav {
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.1);
}
    
#nav ul, #subnav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #FFF;
}

#nav ul {
    max-width: 960px;
    margin: 0 auto;
}

#subnav ul {
    margin-bottom: 1em;
}

#nav li {
    display: block;
    border-bottom: thin solid #AAA;
}


#nav a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 0.5em 1em;
    margin: 0.25em 0;
    transition: color .2s, text-shadow .2s;
}

#subnav a {
    text-decoration: none;
    display: block;
    padding: 0.5em 1em;
    margin: 0.25em 0;
    transition: color .2s, text-shadow .2s;
}

#subnav li:not(:first-of-type) a {
    border-left: thin solid #AAA;
}

@media (min-width: 540px) {
    #nav li {
        display: inline-block;
        border-bottom: none;
    }
    
    #nav li:not(:first-of-type) a {
        border-left: thin solid #AAA;
    }

    #nav a {
        display: inline-block;
        padding: 0.5em 1em;
        margin: 0.25em 0;
    }
}

#subnav li {
    display: inline-block;
    border-bottom: none;
}

#nav a:hover {
    color: #000;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.25);
}

#header h1 {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    background-image: url('../img/key_visual20.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;
    font-size: 2em;
    padding-left: 1em;
    line-height: 6;
    color: #FFF;
    max-height: 400px;
    text-align: left;
    max-width: 960px;
    margin: 0 auto;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.25);
    border-left: .25em solid #FFF;
    border-right: .25em solid #FFF;
}

@media (min-width: 720px) {
    #header h1 {
        font-size: 4em;
        line-height: 3;
    }
}

#footer {
    background-color: #333;
    text-align: center;
    font-size: 75%;
    color: #AAA;
}

#footer a {
    display: inline-block;
    line-height: 1.25;
    color: #AAA;
    text-decoration: none;
    border-bottom: thin solid transparent;
}

#footer a:hover {
    color: #CCC;
}

#main section {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    max-width: 960px;
    margin: 0 auto;
    background-color: #FFF;
    padding: 1em 2em;
    border-left: .5em solid #FFF;
    border-right: .5em solid #FFF;
    margin-bottom: 2em;
    box-shadow: 1px 4px 8px rgba(0, 0, 0, 0.1);
}

#footer > div {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 auto;
    text-align: right;
    max-width: 960px;
    padding: 1em;
    display: block;
}

#footer > div > div {
    display: block;
    float: left;
    text-align: left;
    margin: 0;
    padding-left: 2em;
}

#footer h4 {
    margin: 0;
}

#footer div.info {
    float: left;
    text-align: left;
    margin: 0;
}

.info a, #footer div.info a {
    padding: 0;
    display: block;
    text-decoration: none;
}

a {
    color: #5D8D8D;
    text-decoration: none;
}

a:hover {
    color: #2D4D4D;
}

table {
    width: 100%;
    background: none;
    border: none;
    border-collapse: collapse;
}

thead {
    border-bottom: thin solid #333;
}

th {
    text-align: left;
    font-weight: normal;
    font-size: 1.25em;
    padding: .5em 0;
    color: #5d8d8d;
}

td {
    padding: .5em;
}

tr:nth-child(2n) {
    background-color: #F0F0F0;
}

tr:not(:last-child) {
    border-bottom: thin solid #DDD;
}