@charset "utf-8";

/*
 * 2017.09.15 内部サイトSP版CSS新規作成
 * 2017.12.28 SP版共通スタイル調整
 * 2019.02.21 システムメッセージ行スタイル追加
 * 2019.06.27 テンプレート改造のためのCSS調整
 * 2019.11.11 ヘッダ部のロゴサイズを調整
 */

@media all and (max-width: 767px) {
    *{
        -webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;
        -webkit-text-size-adjust:none;
    }

    /* ログイン画面 */
    table#wrapper{
        width: 100%;
    }
    table#wrapper .logo-collabo{
        text-align: center;
    }
    table#wrapper .td-left, table#wrapper .td-right{
        width: 18%;
    }
    table#form{
        width: 100%;
    }
    table#form input{
        width: 100%;
    }
    .fs10n{
        text-align: center;
    }

    /* 共通 */
    .wrapper {
        width: auto;
        margin: 0 auto;
    }
    .wrapper-inner {
        display: block;
        width: 100%;
    }
    .container-fluid {
        width: 100%;
    }
    .container {
        margin: 0 auto;
        width: 88.75%;
    }
    .pc{
        display: none;
    }
    .collapse {
        display: none;
    }
    .collapse.in{
        display: block;
    }
    #navigation-sp::-webkit-scrollbar {
        display: none;
    }

    /* ヘッダー */
    #header-navi {
        width: 100%;
        background-color: #fff;
        position: absolute;
    }
    #header-navi .img-border-left,
    #header-navi .img-border-right{
        display:none;
    }
    #header-navi .ic-menu {
        position: fixed;
        right: 4.054%;
        top: 10px;
        z-index: 4;
        display: block;
    }
    #header{
        height: 55px;
        position: fixed;
        top: 0;
        left:0;
        z-index: 3;
        border-bottom:5px solid #666;
    }
    #header .col-1 {
        width: auto;
        padding: 9px 0 9px 4.054%;
        height: 50px;
    }
    #header .col-1 img {
        max-width: 220px;
        max-height: 32px;
    }
    #header .col-2,
    #header .col-3,
    #header .col-4{
        display:none;
    }

    /* ナビー */
    #navigation-sp{
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* lets it scroll lazy */
        position: fixed;
        top: 55px;
        left: 50%;
        transform: translate(-50%, 0);
        width: 100%;
        height: auto;
        background-color:#fff;
        max-height: calc(100% - 55px);
        z-index: 4;
    }

    #navigation-sp .menu-header{
        height: 36px;
        padding: 0 5px;
        background: grey;
        line-height: 36px;
        color:#fff;
        font-weight:bold;
    }
    #navigation-sp .menu .arrow-down{
        background: url("../../user_data/packages/default/img/sp/section_menu_arrow.png") no-repeat right center #e8e8e8;
        background-size:20px 13px;
        background-position: right center !important;
    }
    #navigation-sp .menu .arrow-down.active{
        background-image: url("../../user_data/packages/default/img/sp/section_menu_arrow_active.png");
        background-size:21px 13px;
    }
    #navigation .menu{
        height: calc(100% + 1px);
    }
    #navigation-sp .menu ul {
        width: 100%;
        margin:0;
        padding:0;
        border-bottom:5px solid #666;
    }
    #navigation-sp .menu li{
        height: auto;
        padding: 0;
        text-align: left;
        width: 100%;
        border-top: 1px solid #bbb;
        background: #e8e8e8;
        list-style-type: none;
        float: left;
        box-sizing: border-box;
        border-right: none;
    }
    #navigation-sp .menu li a{
        display:block;
        font-size: 16px;
        line-height: 36px;
        width: 100%;
        color:#333;
        text-decoration:none;
        padding: 0 5px;
    }
    #navigation-sp .menu li a:hover{
        background-color:#333;
        color:#fff;
    }
    #navigation-sp .menu .sub-menu{
        margin:0;
        border:0 none;
    }
    #navigation-sp .menu .sub-menu li {
        padding-left:15px;
        border-top: 1px solid #bbb;
        background-color: #fff;
    }
    #navigation-sp .menu .sub-menu li a{
        padding-left:5px;
    }
    .sub-menu, .sub-menu{
        display: none;
    }
    .sub-menu, .sub-menu li{
        padding: 0 20px;
    }

    /* コンテンツ */
    #content{
        margin-top: 55px;
    }
    .content-inner {
        padding-top: 0;
    }
    .tb-content{
        width: 100%;
        margin: 0 auto;
        padding:0 5px;
    }
    .tb-content-wrapper, .tb-main{
        width: 100%;
    }

    .tb-content-wrapper .mainbg{
        background: none;
    }

    .tb-main-img, .tb-main-content{
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }
    .tb-main-img img{
        width: 100%;
        height: auto;
    }

    .tb-main td.no-padding-left{
        padding-left: 0 !important;
    }

    .tb-main-content .img-top img, .tb-main-content .img-bottom img{
        width: 100%;
    }

    .tb-main-content table{
        width: 100%;
    }

    .tb-main-content .main-content {
        width: 100%;
    }

    .button-container a,
    .button-container input {
        margin: 0 2.5%;
    }

    .form-content .col-1{
        width: 30%;
    }
    .form-content .col-2{
        width: 70%;
    }

    .menulv3-wrapper{
        text-align: center;
        padding:14px 9px;
    }

    .section-info{
        width: 100%;
    }
    .section-info span.section-description{
        padding: 14px;
    }

    /* フッター */
    #footer, #footer table{
        width: 100%;
    }
    #footer table td a[href="#top"]{
        padding-right:5px;
        display:inline-block;
        *display:inline;
        zoom:1;
    }
    #footer .copyright {
        height: 30px;
        line-height: 30px;
    }
    #footer .pagetop {
        height: 45px;
    }

    /* エラー画面 */
    .error div#under02column,
    .error div#under02column_error .messagearea{
        width:100%;
        margin:0;
    }
    .error div#under02column{
        margin-top:15px;
    }
    .error div#under02column_error .messagearea{
        margin:0;
    }
    .error #header{
        padding:0;
    }
    .error #header .col-1 {
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .error #header img{
        height: 22px;
    }

    /* システムメッセージ */
    body.has_sys_msg div#u_header,
    body.has_sys_msg #header,
    body.has_sys_msg #header-navi .ic-menu{
        top:auto;
    }
    body.has_sys_msg .menu,
    body.has_sys_msg #navigation-sp{
        top:auto;
        margin-top:53px;
    }
    body.has_sys_msg #header-navi .ic-menu{
        margin-top:10px;
    }
    body.has_sys_msg #navigation-sp .menu{
        margin-top:0;
    }
}

@media all and (max-width: 480px) {

    /* ログイン画面 */
    table#wrapper td, table#form td, #site_label{
        font-size: 13px;
    }
    table#wrapper .td-left, table#wrapper .td-right{
        width: 6.510416666666667%;
    }

    /* ナビー、コンテンツ */
    .menu-name, .menu-comment{
        float: none;
        width: 100%;
        margin-left:0;
    }
}

@media all and (max-width: 320px) {

    /* ログイン画面 */
    table#wrapper td, table#form td, #site_label{
        font-size: 11px;
    }
    table#form .col-1{
        width: 22%;
    }
    table#form .col-2{
        width: 74%;
    }

    /* コンテンツ */
    .tb-main-content td{
        font-size: 12px;
    }
    .menulv3-wrapper{
        font-size: 12px;
    }
    .section-info span.section-description{
        font-size: 12px;
    }

    /* フッター */
    #footer span{
        font-size: 12px;
    }
}