jQuery(function($){


  if($('.isSp').css('width') == '2px'){


    $('.btnHmbMenu').on('click', function(){
      if($('.boxHmbMenu').css('display') == 'none'){
        $('.boxHmbMenu').slideDown();
        var imgPath = $(this).attr('src').replace(/\-btn\.(jpg|png|gif)$/,'-btn-close.$1');
        $(this).attr('src',imgPath);
      }
      else{
        $('.boxHmbMenu').slideUp();
        var imgPath = $(this).attr('src').replace(/\-btn\-close\.(jpg|png|gif)$/,'-btn.$1');
        $(this).attr('src',imgPath);
      }
    });


    $('.icnFooter0501').on('click',function(){
      if($('.boxFooter05L .ulJobCat').css('display') == 'none'){
        var myCheck = $.when(
          $('.boxFooter05L .ulJobCat').slideDown()
        );
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
        $('.boxFooter05R .ttl').css('border-top','1px #9d9086 solid');
      }else{
        var myCheck = $.when(
          $('.boxFooter05L .ulJobCat').slideUp()
        );
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
        $('.boxFooter05R .ttl').css('border-top','0');
      }
      myCheck.done(function(){
        if($('.isPc').css('width') == '1px') {
          $('div#container').css('padding-bottom','');
          $('div#container').css('padding-bottom',$('footer').outerHeight()+'px');
        }
      });
    });


    $('.icnFooter0502').on('click',function(){
      if($('.boxFooter05R .ulWorkLocation').css('display') == 'none'){
        var myCheck = $.when(
          $('.boxFooter05R .ulWorkLocation').slideDown()
        );
        var imgPath = $(this).attr('src').replace(/\-plus02\.(jpg|png|gif)$/,'-minus02.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
        $('.boxFooter05R .ulWorkLocation > li .liTtl').css('border-bottom','1px #9d9086 solid');
      }else{
        var myCheck = $.when(
          $('.boxFooter05R .ulWorkLocation').slideUp()
        );
        var imgPath = $(this).attr('src').replace(/\-minus02\.(jpg|png|gif)$/,'-plus02.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
        $('.boxFooter05R .ulWorkLocation > li .liTtl').css('border-bottom','0');
        $('.boxFooter05R .ulWorkLocation02').css('display','none');
        var imgPath2 = $('.icnFooter0503').attr('src').replace(/\-minus03\.(jpg|png|gif)$/,'-plus03.$1');
        $('.icnFooter0503').attr('src',imgPath2);
      }
      myCheck.done(function(){
        if($('.isPc').css('width') == '1px') {
          $('div#container').css('padding-bottom','');
          $('div#container').css('padding-bottom',$('footer').outerHeight()+'px');
        }
      });
    });


    $('.icnFooter0503').on('click',function(){
      if($(this).parent('.liTtl').next('.ulWorkLocation02').css('display') == 'none'){
        var myCheck = $.when(
          $(this).parent('.liTtl').next('.ulWorkLocation02').slideDown()
        );
        var imgPath = $(this).attr('src').replace(/\-plus03\.(jpg|png|gif)$/,'-minus03.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
        $(this).parent('.liTtl').css('border-bottom','0');
      }else{
        var myCheck = $.when(
          $(this).parent('.liTtl').next('.ulWorkLocation02').slideUp()
        );
        var imgPath = $(this).attr('src').replace(/\-minus03\.(jpg|png|gif)$/,'-plus03.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
        $(this).parent('.liTtl').css('border-bottom','1px #9d9086 solid');
      }
      myCheck.done(function(){
        if($('.isPc').css('width') == '1px') {
          $('div#container').css('padding-bottom','');
          $('div#container').css('padding-bottom',$('footer').outerHeight()+'px');
        }
      });
    });


    $('.boxCompany0101R .btnHideSp01').on('click',function(){
      if($('.boxCompany0101R .txtHideSp01').css('display') == 'none'){
        $('.boxCompany0101R .txtHideSp01').slideDown();
        $('.boxCompany0101R .boxBaseSign').slideDown();
        var imgPath = $(this).find('.imgBtnCompany0101R').attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).find('.imgBtnCompany0101R').attr('src',imgPath);
        $(this).find('.imgBtnCompany0101R').attr('alt','-');
      }else{
        $('.boxCompany0101R .txtHideSp01').slideUp();
        $('.boxCompany0101R .boxBaseSign').slideUp();
        var imgPath = $(this).find('.imgBtnCompany0101R').attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).find('.imgBtnCompany0101R').attr('src',imgPath);
        $(this).find('.imgBtnCompany0101R').attr('alt','+');
      }
    });


    $('.boxCompany05 .btnHideSp01').on('click',function(){
      if($('.boxCompany05 .boxCompany05In').css('display') == 'none'){
        $('.boxCompany05 .boxCompany05In').slideDown();
        var imgPath = $(this).find('.imgBtnCompany05').attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).find('.imgBtnCompany05').attr('src',imgPath);
        $(this).find('.imgBtnCompany05').attr('alt','-');
      }else{
        $('.boxCompany05 .boxCompany05In').slideUp();
        var imgPath = $(this).find('.imgBtnCompany05').attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).find('.imgBtnCompany05').attr('src',imgPath);
        $(this).find('.imgBtnCompany05').attr('alt','+');
      }
    });

    $('.boxCompany06 .btnHideSp01').on('click',function(){
      if($('.boxCompany06 .boxCompany06In').css('display') == 'none'){
        $('.boxCompany06 .boxCompany06In').slideDown();
        var imgPath = $(this).find('.imgBtnCompany06').attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).find('.imgBtnCompany06').attr('src',imgPath);
        $(this).find('.imgBtnCompany06').attr('alt','-');
      }else{
        $('.boxCompany06 .boxCompany06In').slideUp();
        var imgPath = $(this).find('.imgBtnCompany06').attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).find('.imgBtnCompany06').attr('src',imgPath);
        $(this).find('.imgBtnCompany06').attr('alt','+');
      }
    });


    $('.boxInterviewProf .icnInterviewPlus01').on('click',function(){
      if($(this).parent('.ttl2').next('.boxCont2').css('display') == 'none'){
        $(this).parent('.ttl2').next('.boxCont2').slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        $(this).parent('.ttl2').next('.boxCont2').slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });

    $('.boxInterviewS02R .icnInterviewPlus01').on('click',function(){
      if($(this).parent('.ttl2').next('.boxBaseCom').css('display') == 'none'){
        $(this).parent('.ttl2').next('.boxBaseCom').slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        $(this).parent('.ttl2').next('.boxBaseCom').slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });

    $('.boxInterviewS03 .icnInterviewPlus01').on('click',function(){
      if($(this).parent('.ttl').next('.boxBaseCom').css('display') == 'none'){
        $(this).parent('.ttl').next('.boxBaseCom').slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        $(this).parent('.ttl').next('.boxBaseCom').slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });

    $('.boxInterviewS05 .icnInterviewPlus01').on('click',function(){
      if($(this).parent('.ttl').next('.boxBaseCom').css('display') == 'none'){
        $(this).parent('.ttl').next('.boxBaseCom').slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        $(this).parent('.ttl').next('.boxBaseCom').slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });


    $('.boxCareer04 .btnCareer04').on('click',function(){
      var contObj = $(this).parent('.ttl').parent('.boxWelfareTb').find('.boxCareer04Tb.forSp');
      if(contObj.css('display') == 'none'){
        contObj.slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        contObj.slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });


    $('.boxWelfare02R .btnWelfare02R').on('click',function(){
      if($(this).parent('.ttl2').next('.txt01').css('display') == 'none'){
        $(this).parent('.ttl2').next('.txt01').slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        $(this).parent('.ttl2').next('.txt01').slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });

    $('.boxWelfareTb .btnWelfare02R').on('click',function(){
      if($(this).parent('.ttl').next('.boxWelfareTbLR').css('display') == 'none'){
        $(this).parent('.ttl').next('.boxWelfareTbLR').slideDown();
        $(this).parent('.ttl').nextAll('.ulCareerTb').slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        $(this).parent('.ttl').next('.boxWelfareTbLR').slideUp();
        $(this).parent('.ttl').nextAll('.ulCareerTb').slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });


    $('.boxEntry03R .btnEntry03R').on('click',function(){
      if($(this).parent('.boxBtnEntry03R').next('.txtEntry03RSpClose').css('display') == 'none'){
        $('.boxEntry03R .txtEntry03RSpClose').slideDown();
        $('.boxEntry03R .boxEntry03RSpClose').slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        $('.boxEntry03R .txtEntry03RSpClose').slideUp();
        $('.boxEntry03R .boxEntry03RSpClose').slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });

    $('.boxEntry04In .icnEntryPlus01').on('click',function(){
      if($(this).parent('.ttl').next('.boxEntry04InSp').css('display') == 'none'){
        $(this).parent('.ttl').next('.boxEntry04InSp').slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        $(this).parent('.ttl').next('.boxEntry04InSp').slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });

    $('.boxEntry05FIn .icnEntryPlus02').on('click',function(){
      if($(this).parent('.boxStepTtl').next('.boxBaseCom').css('display') == 'none'){
        $(this).parent('.boxStepTtl').next('.boxBaseCom').slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        $(this).parent('.boxStepTtl').next('.boxBaseCom').slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });






  }//isSp



  if($('.isPc').css('width') == '1px'){

    $('.boxCompany05 .icnCompanyPlus').on('click',function(){
      if($('.boxCompany05 .boxCompany05In').css('display') == 'none'){
        $('.boxCompany05 .boxCompany05In').slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        $('.boxCompany05 .boxCompany05In').slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });

    $('.boxCompany06 .icnCompanyPlus').on('click',function(){
      if($('.boxCompany06 .boxCompany06In').css('display') == 'none'){
        $('.boxCompany06 .boxCompany06In').slideDown();
        var imgPath = $(this).attr('src').replace(/\-plus01\.(jpg|png|gif)$/,'-minus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','-');
      }else{
        $('.boxCompany06 .boxCompany06In').slideUp();
        var imgPath = $(this).attr('src').replace(/\-minus01\.(jpg|png|gif)$/,'-plus01.$1');
        $(this).attr('src',imgPath);
        $(this).attr('alt','+');
      }
    });

  }//isPc





});