@media screen and (min-width: 751px) {
    a[href^="tel:"] {
        pointer-events: none;
    }

    .sp {
        display: none;
    }

    .hamburger{display:none;position:fixed;z-index:101}

    #navigation{
        max-width: 100%;
    }

    .tab_menu li:hover,
    .tab_menu li.active:hover {
        background: #e6e6e6;
    }
    .tab_menu li:hover::before {
        background: #e6e6e6;
    }
}

@media screen and (min-width: 751px) and (max-width: 1500px) {}

/* screen-min:750px */
@media screen and (max-width: 750px) {
    img {
        max-width: 100%;
        height: auto;
    }

    p{
        font-size: 140%;
    }

    .sp_mb30{ margin-bottom: 30px;}

    #wrapper,
    #header,#header h1,
    main,body,
    #footer,
    .box,
    .inner {
        width: 100% !important;
        min-width: unset !important;
        box-sizing: border-box;
    }


    .pc {
        display: none !important
    }
    .sp_center{ text-align: center;}
    .txt_sm{ font-size: 80%;}

    /*=====================================================
                          C U S T O M
    ======================================================*/

    /*============ HEADER ============*/
    #header{ 
        z-index: 99;
        width: 100%;
        position: fixed;
        background-color: #fff;
        top: 0;
        left: 0;
    }
    #header .tel,
    #header .btn{
        display: none;
    }
    #header .box{ width: 100%;}
    #header .navi{ width: 100%;}
    .hamburger{position:absolute;right:1%;
        bottom:50%; transform: translateY(50%);
        font:inherit;display:block;overflow:visible;margin:0;cursor:pointer;transition-timing-function:linear;transition-duration:.15s;transition-property:opacity,filter;text-transform:none;color:inherit;border:0;}


     /* nav */
    
    #navigation{
        display:block;
        position:fixed;
        top:102px;
        left:0;
        width:100%;
        height:100%;
        padding-bottom:80px;
        z-index:100;
        display:none;
        background: #233c91;
    }
    #navigation .navi{
        display: flex; flex-direction:column;
        height: auto;
    }
    
    #header h1{
        box-sizing: border-box;
        padding: 10px 10px;
        white-space: normal;       
        word-break: break-word;     
        overflow-wrap: break-word; 
        line-height: 1.4;
        white-space: nowrap;        
        overflow: hidden;           
        text-overflow: ellipsis;  
    }
    #header .navi > li > span, 
    #header .navi > li > a, 
    #header .navi > li > .sub > li > a{
        width: 100%;
        box-sizing: border-box;
        padding: 20px 20px;
        font-size: 16px;
        text-align: left;
        justify-content: flex-start;
    }
    #header .navi > li > .sub{ 
        display: none;
        height: unset;
    }
    #header .navi > li > span:before,
    #header .navi > li > span:after,
    #header .navi > li > a:before,
    #header .navi > li > a:after,
    #header .navi > li:last-child > span:after, 
    #header .navi > li:last-child > a:after{
        content: none;
    }
    
    #navigation .navi > li.parent{
        position: relative;
    }
    #navigation .navi > li.parent.op:after{
        transform: rotate(0);
    }
    #navigation .navi > li.parent:before{
        position: absolute;
        content: "";
        width: 16px;
        height: 2px;
        background-color: #FFF;
        top: 20px;
        right: 30px;
        transition: all 0.3s;
    }
    #navigation .navi > li.parent:after{
        position: absolute;
        content: "";
        width: 16px;
        height: 2px;
        background-color: #FFF;
        top: 20px;
        right: 30px;
        transition: all 0.3s;
        transform: rotate(-90deg);
    }

    #navigation .parent .sub{
        position: relative;
        top: unset;
    }
    #header .navi > li > .sub > li{
        padding-left: 0;
    }

    #navigation .navi ul,#navigation .navi li{width:100%}
    #navigation .parent .sub ul li{background: #fff;}
    #navigation .parent .sub ul li:not(:last-child){border-bottom:1px solid var(--mcolor)}
    #header .navi > li > span,
    #navigation a{display:block;padding:13px 15px 12px;color:#fff;font-size:16px;font-weight:500;border-bottom:solid 1px #fff}
    #navigation a:not([href]){position:relative;padding-left:15px}
    #navigation a:not([href])::before,
    #navigation a:not([href])::after{content:"";position:absolute;width: 16px; height: 2px; background-color: #FFF;top:calc(50% - 1px);right:10px; transition: all 0.3s;}
    #navigation a:not([href])::after{transform: rotate(-90deg);}
    #navigation a.open:not([href])::after{transform: rotate(0);}
    #navigation .sub{display:none}
    #navigation .sub ul:not(:last-child){margin-bottom:15px}
    #navigation .sub a{color:var(--mcolor);border-bottom:none;}

    /*============ Main ============*/
    main {}

    .tt_h304 span,
    .tt_h303 span,
    .tt_h302 span,
    .tt_h301 span,
    #index h3,#index .message h3,
    #index .tt_h303 span,
    #index .tt_h303{
        font-size: 28px;
        font-weight: bold;
    }
    #index .mianImage{
        width: 100%;
        margin-top: 102px;
        background: unset;
        padding-bottom: 0;
    }
    #index .mianImage .box{
        padding: 90px 0;
        display: flex;
        flex-direction: column;
        background: url(../images/index_main_bg.jpg) center top no-repeat;
        background-size: auto 100%;
    }
    #index .mianImage .box .box_h2{
        padding: 0 30px;
    }
    .index_h2{
        font-size: 38px;
    }
    .txt_01{
        font-size: 40px;
    }
    #index .mianImage .btn{
        width: 80%;
        margin: 0 auto;
        text-align: right;
    }

    #tab-box{
        height: auto;
        margin-top: -60px;
        background-size: auto calc(100% - 57px) ;
    }
    #tab-box ul{
        width: 100%;
        box-sizing: border-box;
    }
    #tab-01, #tab-02{
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    #tab-02{ display: none;}
    #tab-02.cur{
        display: flex;
    }
    #tab-box .item h3{
        font-size: 24px;
    }
    #tab-box .item{
        float: unset;
        width: 47%;
        margin-right: unset;
    }
    #tab-box .item a{
        height: 420px;
    }

    /* sec01 */
    #index .message{
        width: 100%;
        background: url(../images/index_message_bg_sp.jpg)no-repeat center top -120px ;
        background-size: 100% auto;
    }
    #index .message h4{ font-size: 18px;}
    #index .message .box{
        width: 100%;
        box-sizing: border-box;
        padding: 150px 30px 100px;
    }
    /* sec02 */
    #index .case{
        width: 100%;
        background: url(../images/index_case_bg_sp.jpg) center bottom no-repeat;
        background-size: cover;
    }
    #index .case .box{
        width: 100%;
        box-sizing: border-box;
        padding: 30px 15px;
        display: flex;
        flex-direction: column;
    }
    #index .case h3{ width: 100%;}
    #index .case .leftSide{
        width: 100%;
        float: unset;

    }
    #index .case .rightSide{
        width: 100%;
        margin-bottom: 30px;
        float: unset;
        height: unset;
        display: flex;
        gap: 30px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    #index .case .item{
        width: 230px;
        float: unset;
        margin: 0 0 ;
        text-align: center;
    }

    /* sec03 */
    #index .advantage{
        width: 100%;
        box-sizing: border-box;
        padding: 45px 15px;
    }
    #index .advantage .text{
        width: 100%;
        box-sizing: border-box;
        float: unset;
        display: block;
        position: relative;
    }
    #index .advantage > ul{
        width: 100%;
        display: flex;
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }
    #index .advantage > ul li{
        float: unset;
        flex-grow: 0;
        flex-shrink: 0;
        margin: 0 0 ;
        min-width: 200px;
        width: 47%;
        height: auto;
        background: none;
        border: 1px solid #233c91;
        border-radius: 15px;
        padding: 0 0 22px;
    }
    .d_icon span{
        font-size: 24px;
    }
    /* sec04 */
    #index .other{
        width: 100%;
        padding: 45px 15px;
        box-sizing: border-box;
    }
    #index .other .blog,
    #index .other .area{
        float: unset;
    }
    #index .other .area{
        margin-bottom: 30px;
    }

    #index .other .blog .newsbox{
        width: 100%;
    }

    #index .newscontent dl dt{width: 120px}
    #index .newscontent dl dd{width: calc(100% - 200px)}

    /* sec05 */
    #index .workflow .box{
        width: 100%;
        padding: 45px 15px;
        box-sizing: border-box;
    }
    #index .workflow h3{
        float: unset;
        display: block;
        position: relative;
    }

    #index .workflow .box > table{
        width: 100%;
        margin-top: 30px;
    }

    #index .workflow .box > table tr> th,
    #index .workflow .box > table tr> td{
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    #index .workflow .box > table tr> th{
        text-align: left;
    }
    #index .workflow .box > table tr> td{
        padding: 20px 15px;
    }
   

    /*============ FOOTER ============*/
    #footer .box{
        width: 100%;
        box-sizing: border-box;
        padding: 45px 15px;

        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
    #footer .box >dl,
    #footer .box >ul{
        display: none;
    }
    #footer .address{
        float: unset;
        width: max-content;
        margin: 0 auto;
        font-size: 18px;
        margin-bottom: 30px;
        text-align: left;
    }
    #footer .address > a{
        display: flex;
    }
    #footer .tel{
        float: unset;
        width: 100%;
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .copyright{
        margin-bottom: 90px;
    }
    .pt{
        bottom: 150px;
    }

    /* sp contact */
    .sp_contact{
        width: 100%;
        display:none;
        gap: 2px;
        justify-content:center;
        align-items:center;
        width:100%;
        box-sizing: border-box;
        padding: 10px 0px 0px;
        position:fixed;
        left:0;
        z-index:90; 
        bottom:0;
        transition: all 0.3s;
        background: #FFF;
    }
    .sp_contact.show{bottom: 0; display: flex; flex-wrap: wrap;}
    /*.sp_contact li{
        width: max-content;
    }*/
	.sp_contact li, .under .sp_contact li{
        width: calc(50% - 1px);
		font-size: 14px;
    }
	.sp_contact li.sp_contact_tit {
		width: 100%;
		font-weight: bold;
	}
	.sp_contact_tel {
		background: #233c91;
		height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
	.sp_contact_mail {
		background: #ff7800;
		height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
	.sp_contact li a {
		color: #fff;
		text-decoration: none;
		text-align: center;
		display: flex;
    align-items: center;
		gap:5px;
	}
    
    #index .bg_bg_tab_content {
        background-size: auto calc(100% - 40px);
    }
    .box_tab_content {
        margin-top: -40px;
    }
    .box_tab_content #tab-box {
        margin: 0;
    }
    .tab_menu {
        padding-left: 5px;
    }
    .tab_menu li {
        width: 140px;
        height: 40px;
        font-size: 15px;
        padding: 14px 10px 10px 20px;
        margin-right: 40px;
        font-weight: bold;
    }
    .tab_menu li::before {
        height: 40px;
        width: 25px;
        right: -15px;
    }
    .box_tab_content #tab-box #tab-01, .box_tab_content #tab-box #tab-02 {
        display: flex;
        padding-bottom: 30px;
    }
}

/*  screen-min:640px */
@media screen and (max-width: 640px) {
    #index .other .area{
        text-align: center;
    }
    #index .other .area img{
        margin: 0 auto
    }
}

/* screen-max:560px */
@media screen and (max-width: 560px) {
    #header .box{
        padding: 0 10px 10px;
    }
    #header .logo{
        width: 200px;
		margin: 0;
    }
    .hamburger-box,
    .hamburger-inner, .hamburger-inner::after, .hamburger-inner::before{ width: 28px;}
    .invoice_num{
        margin-top: 0;
        margin-bottom: 0 !important;
        margin-left: 5px;
    }
    .invoice_num span,
    .invoice_num span:first-child
    { font-size: 8px;}

    .hamburger{ bottom: 45%;}
    #navigation{
        top: 90px;
    }
    /*  */
    .index_h2{
        font-size: 30px;
    }

    #index .mianImage .box{
        padding: 35px 0 80px;
    }
    .txt_h201{ font-size: 15px}
    .txt_01{
        font-size: 36px;
    }
    #tab-01, #tab-02{
        flex-direction: column;
    }
    #tab-box .item{
        width: 300px;
        height: auto;
        margin: 0 auto;
    }
    #tab-box .item a{
        height: auto;
    }

    #index .advantage > ul li{
        width: 300px;
    }

    

    /*.sp_contact{
        padding: 10px 10px;
        gap: 15px;
    }*/
    
    .copyright{
        margin-bottom: 81px;
    }
    .pt {
        bottom: 110px;
    }

}


/* screen-max:440px */
@media screen and (max-width: 440px) {
    
    .sp440 {
        display: block !important;
    }
    .hamburger {
        bottom: 35px;
    }
    .tt_h304 span, .tt_h303 span, .tt_h302 span, .tt_h301 span, #index h3, #index .message h3, #index .tt_h303 span, #index .tt_h303{
        font-size: 24px;
    }
    .txt_ml {
        margin-left: -18px;
    }
    .index_h2 {
        font-size: 28px;
    }
    .txt_01 {
        font-size: 30px;
    }
    #index .mianImage .btn{
        width: 150px;
        margin-right: 30px;
    }
    /*  */
    #tab-box{
        background-size: auto calc(100% - 40px);
    }
    #tab-box ul li{
        width: 150px;
        margin-right: unset;
    }
    #tab-box ul li a span{
        padding-left: 15px;
    }

    #index .message .box{
        padding: 100px 30px 50px;
    }

    #index .case{
        background-size: cover;
    }
    

    #index .workflow h3{
        margin: 0 0;
    }
    

}
@media screen and (max-width: 380px) {
 .sp_contact li, .under .sp_contact li {
    font-size: 3.5vw;
  }
}

/* screen-max: 360px */
@media screen and (max-width: 360px) {
    #index .newscontent dl dt { padding-left: 0; width: 95px;}
    #index .newscontent dl dd{width: calc(100% - 95px)}
	#header .logo{
        width: 180px;
		margin: 0;
    }

    .tab_menu li {
        width: 120px;
        padding: 14px 5px 10px 15px;
        margin-right: 30px;
    }
    .tab_menu li::before {
        width: 20px;
        right: -10px;
    }
}
@media screen and (max-width: 340px){
	#header .logo{
        width: 170px;
		margin: 0;
    }
	.invoice_num span, .invoice_num span:first-child {
    font-size: 7px;
  }
}