

//ページTOPへスクロール(jQueryCoreのみ必要)
/*
$(document).ready(function(){
    $('a#pageTop').click(function() {
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $('#leftCon').offset().top;
                $('html,body').animate({scrollTop: targetOffset}, 400);
                return false;
            }
        }
    });
});
*/

//footer_PageTop
$(document).ready(function() {
    $('a.pageTop').click(function() {
        var targetOffset = $('#wrapper').offset().top;
        $('html,body').animate({scrollTop: targetOffset}, 800);
        $('a.pageTop').attr('href','');
        return false;
    });
});


//--------------------
//
//	service
//
//--------------------

$(document).ready(function() {
    $('a.to_webCreation').click(function() {
        var targetOffset = $('#webCreation').offset().top;
        $('html,body').animate({scrollTop: targetOffset}, 800);
        return false;
    });
});

$(document).ready(function() {
    $('a.to_graphicDesign').click(function() {
        var targetOffset = $('#graphicDesign').offset().top;
        $('html,body').animate({scrollTop: targetOffset}, 800);
        return false;
    });
});

$(document).ready(function() {
    $('a.to_flashBuilding').click(function() {
        var targetOffset = $('#flashBuilding').offset().top;
        $('html,body').animate({scrollTop: targetOffset}, 800);
        return false;
    });
});

$(document).ready(function() {
    $('a.to_blogCustomize').click(function() {
        var targetOffset = $('#blogCustomize').offset().top;
        $('html,body').animate({scrollTop: targetOffset}, 800);
        return false;
    });
});

$(document).ready(function() {
    $('a.to_webSystemDevelopment').click(function() {
        var targetOffset = $('#webSystemDevelopment').offset().top;
        $('html,body').animate({scrollTop: targetOffset}, 800);
        return false;
    });
});

$(document).ready(function() {
    $('a.to_musicComposition').click(function() {
        var targetOffset = $('#musicComposition').offset().top;
        $('html,body').animate({scrollTop: targetOffset}, 800);
        return false;
    });
});

$(document).ready(function() {
    $('a.to_serviceList').click(function() {
        var targetOffset = $('#serviceListTitle').offset().top;
        $('html,body').animate({scrollTop: targetOffset}, 800);
        return false;
    });
});

//--------------------------
//
// process
//
//--------------------------
$(document).ready(function() {
    $('a.to_process').click(function() {
        var targetOffset = $('#process').offset().top;
        $('html,body').animate({scrollTop: targetOffset}, 800);
        return false;
    });
});


//--------------------------
//
// charges
//
//--------------------------
$(document).ready(function() {
    $('a.to_charges').click(function() {
        var targetOffset = $('#charges').offset().top;
        $('html,body').animate({scrollTop: targetOffset}, 800);
        return false;
    });
});








