void Update () {

        //touchDiff /= 1080.0f;
        //inputLength = 0.10f;

        // プレイヤー位置の取得
        targetPos = targetObj.transform.position;

        // プレイヤー回転量の取得
        targetRot = targetObj.transform.rotation;
        targetRot.y = 0.0f;

        // カメラの姿勢をプレイヤーと同期
        cameraDir = Vector3.ProjectOnPlane(cameraDir, offlinePostureController.GetsurfaceNormal);
        //transform.rotation = Quaternion.LookRotation(cameraDir, postureController.GetsurfaceNormal);
        rotCamera = Quaternion.LookRotation(cameraDir, offlinePostureController.GetsurfaceNormal);

        // 射影ベクトルで求めたカメラの傾きを退避
        Quaternion rotCameraEvac = rotCamera;

        // カメラのピッチ量に合わせて傾きを変更
        //rotCamera.x += rotPitch;
        transform.rotation = rotCamera;

        // カメラ位置の調整
        transform.position = targetObj.transform.position + rotCameraEvac * localPos;
        //transform.position = targetObj.transform.position + rotCamera * localPos;

        // エディタ上での操作
        if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer)
        {
            // マウスの右クリックを押している間
            if (Input.GetMouseButton(1))
            {
                // マウスの移動量
                mouseInputX = Input.GetAxis("Mouse X");
                mouseInputY = Input.GetAxis("Mouse Y");

                // targetの位置のY軸を中心に、回転(公転)する
                transform.RotateAround(targetPos, offlinePostureController.GetsurfaceNormal, mouseInputX * Time.deltaTime * 200f);
                cameraDir = Vector3.ProjectOnPlane(targetPos - transform.position, offlinePostureController.GetsurfaceNormal);


            }
        }
        // スマホ上での操作
        else if (Application.isMobilePlatform)
        {
            // タッチ位置の差分の算出
            touchDiff = cameraController.GetCameraRotateLength();

            if (Input.touchCount == 2)
            {
                if (Mathf.Abs(touchDiff) > rotCameraThre)
                {
                    transform.RotateAround(targetPos, offlinePostureController.GetsurfaceNormal, touchDiff * Time.deltaTime * rotSpeed);
                    cameraDir = Vector3.ProjectOnPlane(targetPos - transform.position, offlinePostureController.GetsurfaceNormal);
                }
            }
        }

    }