@import url("./slidebars.min.css") only screen and (max-width: 767px);

/* PC */
@media only screen and (min-width: 768px) {
    .sp{
        display: none !important;
    }
}



/* SP */
@media only screen and (max-width: 767px) {
    .pc{
        display: none !important;
    }
    
    body{
        border: none;
        background: #fff;
        font-size: 14px;
    }
    img{
        max-width: 100%;
        height: auto;
    }
    
    /* header */
    #header{
        position: fixed;
        z-index: 100;
        background: #fff;
        width: 100%;
    }
    #header h1{
        display: none;
    }
    #logo{
        padding: 20px 20px 10px;
        -ms-text-align-last: auto;
        text-align: left;
    }
    #logo a{
        display: block;
        width: 57vw;
        height: auto;
        margin-bottom: 5px;
    }
    #logo p{
        display: block;
    }
    
    
    /* nav */
    .sb-toggle-right {
        position:absolute;
        top:10px;
        right: 20px;
        padding:10px;
        width:50px;
        background-color:#fff;
        border: none;
    }

    .drawer-hamburger-icon {
        position: relative;
        display: block;
        background-color:#fff;
        height:auto;
        min-height:21px;
        margin-top: 7px;
    }
    .drawer-hamburger-icon span, 
    .drawer-hamburger-icon::after {
        display:block;
        width: 100%;
        height: 1px;
        margin-bottom:8px;
        -webkit-transition: all .6s cubic-bezier(.19,1,.22,1);
        transition: all .6s cubic-bezier(.19,1,.22,1);
        background-color: #222;
    }
    .drawer-hamburger-icon::after {
        position: absolute;
        top: 18px;
        left: 0;
        content: ' ';
    }
    .sb-slidebar{
        background-color:#fff;
        z-index:200;
        padding: 70px 20px 20px;
        box-shadow: -8px 0 10px -3px rgba(0,0,0,0.3);
        text-align: left;
    }
    .sb-slidebar + .overlay{
        display:none;
    }
    .sb-slidebar.sb-active + .overlay{
        display:block;
        position:absolute;
        top:0;
        left:0;
        width:100%;
        height:100%;
        background-color:#000;
        opacity:0.1;
        z-index:199;
    }
    .sb-slidebar .drawer-hamburger {
        right: 30px;
        top:10px;
    }
    .sb-active .drawer-hamburger-icon span:last-child {
        display:none;
    }
    .sb-active .drawer-hamburger-icon {
      background-color: transparent;
    }

    .sb-active .drawer-hamburger-icon span:first-child,
    .sb-active .drawer-hamburger-icon:after {
        position: absolute;
      top: 10px;
    }

    .sb-active .drawer-hamburger-icon span:first-child {
      -webkit-transform: rotate(45deg);
          -ms-transform: rotate(45deg);
              transform: rotate(45deg);
    }

    .sb-active .drawer-hamburger-icon:after {
      -webkit-transform: rotate(-45deg);
          -ms-transform: rotate(-45deg);
              transform: rotate(-45deg);
    }
    .drawertable{
        display:block;
        height:100%;
        width:100%;
    }
    .sb-slidebar a{
        display:block;
        color:#333333;
        font-size:16px;
        line-height:140%;
    }
    .sb-slidebar ul#spMenu > li{
        border-bottom: 1px solid #e4e4e4;
        padding-bottom: 17px;
        margin-bottom: 17px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .sb-slidebar ul#spMenu > li > a{
        width: 100%;
        padding-left: 10px;
        list-style:none;
        border-left: 4px solid #194b14;
        font-weight:bold;
        font-family: "ヒラギノ角ゴ Pro W6", "Hiragino Kaku Gothic Pro", "ＭＳ ゴシック", "Osaka", Helvetica, sans-serif;
    }
    .sb-slidebar ul ul{
        margin-left: 17px;
    }
    .sb-slidebar li li a{
        font-size:14px;
        margin-top: 8px;
    }
    .sb-slidebar li li a:before{
        content: '';
        display: inline-block;
        box-sizing: border-box;
        width: 4px;
        height: 4px;
        border: 4px solid transparent;
        border-left: 4px solid #194b14;
    }
    .sb-slidebar .btn-tel img{
        width:80%;
        margin:10px 0 20px;
    }
    
    /* base */
    body:not(.home) #contents,
    #topMenu{
        padding-top: 85px;
    }
    #container{
        max-width:100%;
    }
    #contents{
        max-width: calc(100% - 40px);
        padding-left: 20px;
        padding-right: 20px;
    }
    #main{
        float: none;
        width: 100%;
        margin-bottom: 70px;
    }
    #pnkz{
        display: none;
    }
    
    .sp-btn{
        text-align: center;
        margin: 0 auto 30px;
    }
    .sp-btn a{
        display: inline-block;
        background: #e8ede7;
        border: 1px solid #194b14;
        border-radius: 20px;
        min-width: 225px;
        height: 40px;
        font-size: 14px;
        color: #194b14;
        line-height: 40px;
    }
    
    
    /* footer */
    .pagetop{
        margin-top: 20px;
    }
    #ft_box{
        width: 100%;
        box-sizing: border-box;
        padding: 45px 20px 20px;
    }
    #ft_box #ftLeft{
        float: none;
        width: 100%;
    }
    address{
        padding-top: 40px;
    }
    
    
    /* top */
    #slider_main{
        float: none;
        width: 100%;
        height: 64vw;
    }
    #slider_main ul li {
        width: 100vw;
        height: 64vw;
    }
    
    .home #main{
        width: 100%;
        float: none;
    }
    .home #main .box.left{
        float: none;
        margin-top: 20px;
    }
    .home #main .box.right{
        display: none;
    }
    .sp-top_prg{
        margin-top: 30px;
    }
    .sp-top_prg h2 img{
        width: 100%;
        margin-bottom: 15px;
    }
    .sp-top_prg p{
        margin-bottom: 30px;
    }
    
    #reformWorks_top{
        float: none;
        width: 100%;
        padding-top: 0;
    }
    #reformWorks_c{
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    #reformWorks_c li{
        width: calc(50% - 5px);
        margin-right: 0;
        float: none;
        height: auto;
    }
    
    .sp-top_img{
        margin-bottom: 15px;
    }
    .sp-top02,
    .sp-top03,
    .sp-top04{
        margin-bottom: 70px;
    }
    
    #sub{
        float: none;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    #sub ul.home-sub_list{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0 auto 50px;
        max-width: 230px;
    }
    .home-sub_list01{
        order: 3
    }
    .home-sub_list02{
        order: 2
    }
    .home-sub_list03{
        order: 1;
        margin-bottom: 20px;
    }
    
    
    /* system */
    .system-img01{
        max-width: 50%;
        margin-bottom: 10px;
    }
    #sysTB td.sysL{
        width: 35%;
        padding-right: 20px;
    }
    
    /* newhouse */
    .newhouse-2col_img div{
        width: 50%;
        margin-top: 10px;
    }
    .nhWorks{
        width: 100%;
        box-sizing: border-box;
    }
    .nhWorksL,
    .nhWorksR,
    .nhWorksR p{
        float: none;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;
    }
    .nhWorksL img{
        width: calc(50% - 12px);
    }
    .nhWorksL img:nth-child(2n){
        margin-right: 0;
    }
    
    /* taishin */
    img.taishin-ttl01{
        width:100%;
        height: auto;
    }
    
    .taishinImgTB,
    .taishinImgTB2{
        display: block;
        margin-top: 10px;
    }
    .taishin tbody{
        width: 100%;
    }
    .taishinImgTB tr,
    .taishinImgTB2 tr{
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    .taishinImgTB td{
        width: 30%;
        max-width: 110px;
        box-sizing: border-box;
        padding-right: 10px;
    }
    .taishinImgTB2 td{
        width: calc(calc(100% - 52px) / 3);
    }
    .taishinImgTB.taishin-table_sp td,
    .taishinImgTB2.taishin-table_sp td{
        width: calc(calc(100% - 72px) / 4);
    }
    .taishinImgTB th,
    .taishinImgTB2 th{
        width: 100%;
        margin: 10px 0;
        padding: 0;
    }
    .taishinImgTB tr.pc,
    .taishinImgTB2 tr.pc{
        display: none;
    }
    
    .taishinImgTB2 th.taishin-arrow{
        width: 26px;
        box-sizing: border-box;
        align-self:center;
        padding: 0 5px;
    }
    .taishinImgTB2.taishin-table_sp th.taishin-arrow{
        width: 18px;
        padding: 0 3px;
    }
    .taishinImgTB2 th.vat .mgl15{
        margin-left: 0;
    }
    .taishinImgTB2 td.taishin-prg01{
        width: 100%;
    }
    .taishinImgTB2 td.taishin-prg01 .txtidt01{
        display: inline;
    }
    .taishinImgTB td small,
    .taishinImgTB2 td small{
        display: block;
        line-height: 1.4;
        padding: 5px 0;
    }
    
    
    /* barrierfree_r */
    .barrierfree_r table.phw160TB{
        display: block;
    }
    .barrierfree_r table.phw160TB tr{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .barrierfree_r table.phw160TB td {
width: calc(50% - 10px);
        padding: 0;
        margin-bottom: 20px;
}
    .barrierfree_r table.phw160TB td div.sp {
        text-align: left;
        margin-top: 5px;
}
    
    /* mind */
    .mind-mdBox{
        max-width: 100%;
        background-size: contain;
    }
    .mind .mdList01,
    .mind .mdList02{
        padding: 60px 20px 0;
    }
    
    
    /* inquiry */
    .inquiry table.inquiryTB,
    .inquiry .inquiryTB tbody,
    .inquiry .inquiryTB tr,
    .inquiry .inquiryTB th,
    .inquiry .inquiryTB td{
        display: block;
    }
    .inquiry .inquiryTB th{
        border: none;
        padding-bottom: 0;
    }
    .inquiry .inquiryTB input[type="text"],
    .inquiry textarea{
        max-width: 100%;
        box-sizing: border-box;
    }
    .inquiry .inquiryTB #postalcode,
    .inquiry .inquiryTB #email{
        display: block;
    }
    
    /* case */
    #summary{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .summaryBox{
        width: calc(50% - 10px);
        margin: 0 0 20px;
    }
    .summaryText,
    .summaryImg{
        width: 100%;
        box-sizing: border-box;
    }
    #detailsAfter p {
float: none;
width: 100%;
height: auto;
margin-right: 0;
}
}
