
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial;
    color: #2f2f2f;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.4;
    -webkit-text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    background: #ecf0f1;
}

*, *:after, *:before {
    moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

a,a:active,a:visited {text-decoration:none;color:slateblue;}

main {
    text-align: center;
}

    main > div {
        display: inline-block;
        width: 900px;
        max-width: 100%;
        margin: 0 auto;
    }

footer {
    padding-bottom: 64px;
}

h1 {
    font-weight: normal;
    font-size: calc(18px + (24 - 18) * (100vw - 360px) / (800 - 360));
}

h2 {
    font-weight: normal;
    font-size: 1em;
    margin: 0;
    padding: 0 0 8px;    
}

.h2-white h2 {
    color: #fff;
}

.header {
    padding: 8px;
    border: 1px solid #d6d6d6;
}

.font-s {
    font-size: 0.9em;
}

.font-l {
    font-size: 1.4em;
}

.l {
    text-align: left;
}

.r {
    text-align: right;
}

.c {
    text-align: center;
}

.flex {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    align-items: center;
    -ms-flex-align: center;
    -moz-box-align: center;
    width: 100%;
    margin: 0 auto 32px;
    position: relative;
    height: auto;
}

.flex-128 > div {
    flex-basis: 200px;
    flex-grow: 1;
    flex-shrink: 0;
    padding:16px 8px;
}

label {
    cursor: pointer;
    font-size:0.8em;
}

.tab > input,
.tab section > div {
    display: none;
}

#tab1:checked ~ section .tab1,
#tab2:checked ~ section .tab2,
#tab3:checked ~ section .tab3,
#tab4:checked ~ section .tab4, 
#tab5:checked ~ section .tab5,
#tab6:checked ~ section .tab6,
#tab7:checked ~ section .tab7 {
    display: block;
}


.tab {
    width: 100%;
    max-width: 800px;
    margin: 24px auto;
}

    .tab ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        .tab ul li label {
            float: left;
            padding: 16px;
            border: 1px solid #ddd;
            border-bottom: 0;
            background: #eeeeee;
            color: #444;
        }

            .tab ul li label:hover {
                background: #dddddd;
            }

            .tab ul li label:active {
                background: #ffffff;
            }

        .tab ul li:not(:last-child) label {
            border-right-width: 0;
        }

    .tab section {
        clear: both;
    }

        .tab section > div {
            padding: 16px 0;
            width: 100%;
            border: 1px solid #ddd;
            background: #fff;
            line-height: 1.5em;
            letter-spacing: 0.3px;
            color: #444;
        }

#tab1:checked ~ nav .tab1 label,
#tab2:checked ~ nav .tab2 label,
#tab3:checked ~ nav .tab3 label,
#tab4:checked ~ nav .tab4 label,
#tab5:checked ~ nav .tab5 label,
#tab6:checked ~ nav .tab6 label,
#tab7:checked ~ nav .tab7 label {
    background: white;
    color: #111;
    position: relative;
}

    #tab1:checked ~ nav .tab1 label:after,
    #tab2:checked ~ nav .tab2 label:after,
    #tab3:checked ~ nav .tab3 label:after,
    #tab4:checked ~ nav .tab4 label:after,
    #tab5:checked ~ nav .tab5 label:after,
    #tab6:checked ~ nav .tab6 label:after,
    #tab7:checked ~ nav .tab7 label:after {
        content: '';
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: #ffffff;
        left: 0;
        bottom: -1px;
    }

@media screen and (min-width: 400px) {
    label {
        font-size: 1em;
    }
}