/* For modern browsers */

html,
body {
    height: 100%;
    margin: 0px;
    padding: 0px;
}
#wrapper {
    min-width: 320px;
}
#container {
    background-color: #fff;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1);
    position: relative;
}
header {
    width: 100%;
    height: 89px;
    background-color: #11245c;
    background-image: url("../img/hd_bg.gif");
    background-repeat: repeat;
    background-size: 7px 7px;
    background-position: top left;
    z-index: 10;
}
#hd_sub {
    margin: 5px;
    height: 15px;
}
#hd_sub a h1 {
    margin-left: 25px;
    position: relative;
    float: left;
}
#hd_sub a h1:before {
    width: 20px;
    height: 16px;
    position: absolute;
    top: 2px;
    left: -25px;
    background-image: url("../img/tm-logo01.png");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: top left;
    display: block;
    content: "";
}
#hd_sub a h1 span {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.5px;
    color: #fff;
}
/*-------------0527フッタ内ボタン書き換え-------------*/
#hd_sub #sub_btn {
    margin-right: 10px;
    float: right;
    display: none;
}
#hd_sub #sub_btn li {
    float: left;
}

/*SNSボタン装飾ここから*/
#sub_btn .sub_btn01 a {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    display: block;
    border-radius: 2px;
}
#sub_btn .sub_btn01 a span {
    display: none;
}

/*twitterボタン装飾*/
#hd-tw a {
    background-color: #fff;
    background-image: url("../img/btn.png");
    background-repeat: no-repeat;
    background-size: 400px 250px;
}
#hd-tw a:hover {
    background-position: 0 -20px;
    background-color: #55acee;
    cursor: pointer;
}

/*facebookボタン装飾*/
#hd-fb a {
    background-color: #fff;
    background-image: url("../img/btn.png");
    background-repeat: no-repeat;
    background-size: 400px 250px;
    background-position: -25px 0;
}
#hd-fb:hover a {
    background-position: -25px -20px;
    background-color: #315096;
    cursor: pointer;
}

/*lineボタン装飾*/
#hd-li a {
    background-color: #fff;
    background-image: url("../img/btn.png");
    background-repeat: no-repeat;
    background-size: 400px 250px;
    background-position: -50px 0;
}
#hd-li:hover a {
    background-position: -50px -20px;
    background-color: #00c300;
    cursor: pointer;
}

/*問い合わせボタン装飾*/
.sub_btn02 a {
    margin-right: 10px;
    width: 90px;
    background-color: #11245c;
    text-align: center;
    font-size: 10px;
    line-height: 18px;
    border-radius: 3px;
    border: solid 1px #fff;
}
.sub_btn02 a {
    display: block;
    color: #fff;
}
.sub_btn02 a:hover {
    background-color: #fff;
    color: #11245c;
}

/*オフシャルタイムラインへボタン装飾*/
#sub_btn .sub_btn03 {
    padding: 0 5px 0 20px;
    text-align: center;
    font-size: 10px;
    line-height: 18px;
    border-radius: 3px;
    float: left;
}
.sub_btn03 {
    background-color: #eeeeee;
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #eeeeee), color-stop(100%, #cccccc));
    background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
    background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
    background-image: linear-gradient(top, #eeeeee, #cccccc);
    border: 1px solid #ccc;
    border-bottom: 1px solid #bbb;
    color: #333;
    text-shadow: 0 1px 0 #eee;
    background-image: url("../img/btn.png");
    background-repeat: no-repeat;
    background-size: 400px 250px;
    background-position: 0 -51px;
}
.sub_btn03:hover {
    background-color: #dddddd;
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #dddddd), color-stop(100%, #bbbbbb));
    background-image: -webkit-linear-gradient(top, #dddddd, #bbbbbb);
    background-image: -o-linear-gradient(top, #dddddd, #bbbbbb);
    background-image: linear-gradient(top, #dddddd, #bbbbbb);
    border: 1px solid #bbb;
    border-bottom: 1px solid #999;
    cursor: pointer;
    text-shadow: 0 1px 0 #ddd;
    background-image: url("../img/btn.png");
}
.sub_btn03:active {
    border: 1px solid #aaa;
    border-bottom: 1px solid #888;
    -webkit-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
    box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
}
/*-------------0527フッタ内ボタン書き換えここまで-------------*/

nav {
    width: 100%;
    background-color: rgba(0, 0, 0, .8);
    z-index: 10;
}
nav ul #nav-logo {
    display: none;
}
nav ul li {
    margin: 5px 0;
    border-right: solid 1px #777;
    width: 33%;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #fff;
    line-height: 22px;
    display: block;
    cursor: pointer;
    float: left;
    display: block;
}
nav ul li:nth-child(4),
nav ul li:last-child {
    border-right: 0;
}
nav ul li a {
    font-size: 16px;
    color: #fff;
    display: block;
}
nav ul li a:hover {
    color: #ffc81f;
    text-decoration: underline;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#contents-box {
    padding-bottom: 180px;
}
#end-box {
    margin: 0;
    padding: 50px 0 20px;
    height: 110px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
#end-box h2 {
    margin: 0 auto 10px;
    height: 50px;
    width: 67px;
    background-image: url("../img/tm-logo02.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
}
#end-box h2 span {
    display: none;
}
#end-box p {
    font-size: 11px;
    text-align: center;
    line-height: 1.2em;
    color: #585858;
}
.fixed {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    margin: 0 auto;
}
footer {
    width: 100%;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
    position: relative;
}
#fot-nav {
    padding: 5px 5px;
    background-color: #eff5f7;
}
#fot-nav ul {
    text-align: center;
}
#fot-nav ul li {
    margin-left: 18px;
    font-size: 12px;
    line-height: 1.6em;
    display: inline-block;
    position: relative;
}
#fot-nav ul li:first-child {
    padding-left: 0;
}
#fot-nav ul li:after {
    display: block;
    content: '';
    position: absolute;
    top: .5em;
    left: -1em;
    width: 4px;
    height: 4px;
    border-right: 2px solid #9c9c9c;
    border-bottom: 2px solid #9c9c9c;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
#fot-nav ul li:hover a {
    text-decoration: underline;
}
footer #fot-sns {
    padding-top: 5px;
    background-color: #dadada;
    background-image: url("../img/ft_bg.gif");
    background-repeat: repeat-x;
    background-size: 7px 45px;
    background-position: top left;
    z-index: 10;
    position: relative;
}
footer #fot-sns:before {
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 3px;
    background-color: #ffc81f;
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #c0c0c0;
}
footer #fot-sns div {
    padding: 0 5px;
}
footer #fot-sns div h4 {
    text-align: center;
    color: #000;
    font-size: 11px;
    line-height: 35px;
    font-weight: normal;
}
footer #fot-sns div ul {
    margin: 0 auto 20px;
    width: 256px;
}
footer #fot-sns div ul li {
    margin-right: 5px;
    width: 80px;
    color: #fff;
    font-size: 10px;
    text-align: center;
    border-radius: 2px;
    float: left;
}
footer #fot-sns div ul li:last-child {
    margin-right: 0;
}
footer #fot-sns div ul li a {
    display: block;
}
footer #fot-sns div ul li a span {
    padding: 5px 0 5px 20px;
    color: #fff;
}
#tw-btn {
    background-color: #55acee;
    background: -moz-linear-gradient(top, #55acee 0%, #1684d8 100%);
    background: -webkit-linear-gradient(top, #55acee 0%, #1684d8 100%);
    background: linear-gradient(to bottom, #55acee 0%, #1684d8 100%);
    border: solid 1px #147bc9;
}
#tw-btn a span {
    line-height: 18px;
    background-image: url("../img/btn.png");
    background-repeat: no-repeat;
    background-size: 400px 250px;
    background-position: 0px -148px;
}
#fb-btn {
    background-color: #315096;
    background: -moz-linear-gradient(top, #315096 0%, #1c2e56 100%);
    background: -webkit-linear-gradient(top, #315096 0%, #1c2e56 100%);
    background: linear-gradient(to bottom, #315096 0%, #1c2e56 100%);
    border: solid 1px #101930;
}
#fb-btn a span {
    line-height: 18px;
    background-image: url("../img/btn.png");
    background-repeat: no-repeat;
    background-size: 400px 250px;
    background-position: 0 -174px;
}
#line-btn {
    background-color: #00c300;
    background: -moz-linear-gradient(top, #19ff19 0%, #00c300 100%);
    background: -webkit-linear-gradient(top, #19ff19 0%, #00c300 100%);
    background: linear-gradient(to bottom, #19ff19 0%, #00c300 100%);
    border: solid 1px #009000;
}
#line-btn a span {
    line-height: 18px;
    background-image: url("../img/btn.png");
    background-repeat: no-repeat;
    background-size: 400px 250px;
    background-position: 0 -199px;
}
footer #fot-sns div ul li a:hover {
    opacity: 0.8;
}
.page-top {
    width: 40px;
    height: 40px;
    position: fixed;
    right: 0;
    bottom: 20px;
    border-radius: 4px 0 0 4px;
    background-color: #0541a2;
    background-image: url("../img/btn.png");
    background-repeat: no-repeat;
    background-size: 400px 250px;
    background-position: 0 -80px;
    opacity: 0.7;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    transition: 0.3s;
    cursor: pointer;
    z-index: 30;
    display: none;
}
.page-top:hover {
    opacity: 1.0;
}
.page-top p {
    display: none;
}
.ft-fixed {
    position: absolute;
    top: -60px;
}
@media screen and (min-width: 768px) {
    header {
        width: 100%;
        height: 88px;
        background-color: #0541a2;
        z-index: 10;
    }
    #hd_sub {
        margin: 10px auto 22px;
        height: 20px;
        max-width: 1024px;
    }
    #hd_sub a h1 {
        margin-left: 115px;
        background-image: none;
    }
    #hd_sub a h1:before {
        width: 96px;
        height: 74px;
        position: absolute;
        top: -3px;
        left: -108px;
        background-image: url("../img/tm-logo_hd.png");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: top left;
        display: block;
        content: "";
    }

/*0527フッタ内ボタン書き換え*/
    #hd_sub #sub_btn {
        display: block;
    }
/*0527フッタ内ボタン書き換えここまで*/
    
    nav {
        width: auto;
        margin-left: 115px;
    }
    nav ul li {
        margin: 10px auto;
        width: 16.6%;
        border-left: 0px;
        border-right: 0px;
        font-size: 16px;
        line-height: 16px;
    }
    nav ul #nav-logo {
        width: 0;
        display: block;
        opacity: 0;
    }
    .fixed {
        margin-left: 0;
    }
    .fixed ul {
        margin: 0 auto;
        max-width: 1024px;
    }
    .fixed ul li {
        width: 15%;
    }
    .fixed ul li:first-child {
        width: 9% !important;
        border-right: solid 1px #fff;
    }
    .fixed ul #nav-logo {
        opacity: 1;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
    #container {
        margin: 0 auto;
        max-width: 1024px;
    }
    footer #fot-sns div {
        max-width: 1024px;
        margin: 0 auto;
    }
    footer #fot-sns div h4 {
        line-height: 41px;
        float: left;
    }
    footer #fot-sns div ul {
        float: right;
        margin: 10px 0;
    }
}
@media screen and (min-width: 1024px) {
    header div {
        max-width: 1024px;
        margin: 0 auto;
        padding: 0;
    }
    #hd_sub a h1:before {
        left: -113px;
    }

/*0527フッタ内ボタン書き換え*/
    #hd_sub #sub_btn {
        margin-right: 0;
    }
/*0527フッタ内ボタン書き換えここまで*/
}